start updating kiri package to use gapp.register()
This commit is contained in:
parent
32e9ceca55
commit
64d825b48c
11 changed files with 77 additions and 69 deletions
|
|
@ -2,15 +2,15 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
(function() {
|
||||
|
||||
if (self.kiri.codec) return;
|
||||
// dep: main.kiri
|
||||
// dep: geo.base
|
||||
gapp.register("kiri.codec", [], (root, exports) => {
|
||||
|
||||
const BASE = self.base, KIRI = self.kiri, handlers = {};
|
||||
const freeMem = true;
|
||||
const zeroOut = true;
|
||||
|
||||
const codec = KIRI.codec = {
|
||||
const codec = exports({
|
||||
undef: undefined,
|
||||
encode: encode,
|
||||
decode: decode,
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
encodePointArray,
|
||||
decodePointArray,
|
||||
toCodable
|
||||
};
|
||||
});
|
||||
|
||||
function toCodable(object) {
|
||||
switch (typeof object) {
|
||||
|
|
@ -389,5 +389,4 @@
|
|||
return poly;
|
||||
});
|
||||
|
||||
|
||||
})();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue