start updating kiri package to use gapp.register()

This commit is contained in:
Stewart Allen 2022-02-20 18:00:31 -05:00
commit 64d825b48c
11 changed files with 77 additions and 69 deletions

View file

@ -2,6 +2,9 @@
"use strict";
// dep: data.local
// dep: main.kiri
// use: moto.ajax
(function () {
const { kiri, moto, data } = self;
@ -30,7 +33,7 @@ function encodeOpt(opt) {
}
function ajax(url, fn, rt, po, hd) {
return new moto.Ajax(fn, rt).request(url, po, hd);
return moto.ajax.new(fn, rt).request(url, po, hd);
}
function o2js(o,def) {