deblan.io-murph/assets/js/app/app.js

16 lines
299 B
JavaScript

var App = function(components) {
this.components = components || [];
}
App.prototype.add = function(c) {
this.components.push(c);
return this;
}
App.prototype.init = function() {
for (var u = 0, x = this.components.length; u < x; u++) {
this.components[u].init();
}
}