mframejs
Version:
simple framework
39 lines • 1.72 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var dom_1 = require("./dom");
var exported_1 = require("../view/exported");
var exported_2 = require("../behavior/exported");
var exported_3 = require("../attribute/exported");
var exported_4 = require("../binding/exported");
var MF = (function () {
function MF() {
this.count = 0;
if (!dom_1.DOM.window.Reflect) {
dom_1.DOM.window.Reflect = Object;
}
this.register(exported_3.ValueAttribute, exported_3.IfAttribute, exported_3.DelgateEventsAttribute, exported_3.RepeatAttribute, exported_3.MiscAttributes, exported_3.CssAttribute, exported_3.ModelAttribute, exported_3.TriggerEventsAttribute, exported_2.SignalBehavior, exported_2.ThrottleBehavior, exported_2.DebounceBehavior, exported_2.TriggerBehavior);
}
MF.prototype.setRootApp = function (app) {
this.app = app;
return this;
};
MF.prototype.start = function (node) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
this.node = node;
this.$view = new exported_1.ViewController(node, null);
exported_1.View.parseAndCreateElement(this.app, this.node, exported_4.createBindingContext(this), null, this.$view);
return [2];
});
});
};
MF.prototype.register = function () {
var _class = [];
for (var _i = 0; _i < arguments.length; _i++) {
_class[_i] = arguments[_i];
}
};
return MF;
}());
exports.MF = MF;
//# sourceMappingURL=mf.js.map