mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-21 12:12:44 +01:00
Implemented templates feature
This commit is contained in:
@@ -19,6 +19,10 @@
|
||||
controllerDi.register(name, reg);
|
||||
};
|
||||
|
||||
app.run(function(){
|
||||
attachControllers(app.rootViewElement, app.di);
|
||||
});
|
||||
|
||||
function addControllerMixin(ctrl) {
|
||||
ctrl.attachView = function(viewElement) {
|
||||
|
||||
@@ -39,10 +43,6 @@
|
||||
};
|
||||
}
|
||||
|
||||
app.run(function(){
|
||||
attachControllers(app.rootViewElement, app.di);
|
||||
});
|
||||
|
||||
function attachControllers(rootViewElement) {
|
||||
var elements = rootViewElement.querySelectorAll('[data-controller]'),
|
||||
i = 0, l = elements.length,
|
||||
@@ -78,9 +78,4 @@
|
||||
}
|
||||
}
|
||||
|
||||
function isController(obj) {
|
||||
return obj.componentType == 'controller';
|
||||
|
||||
}
|
||||
|
||||
})(window.app, window.should, window.Container);
|
||||
|
||||
Reference in New Issue
Block a user