var RootComponent = {
init: function(options){
options = jQuery.extend({name: 'Root'}, options);
this.run('ContainerComponent.init')(options);
}
}
A new method called "run" is then applied to this. And this will launch the method found in the path with this context. Now, what problems do you think I can have? thank
klass.run = function(path){
var that = this;
return function(){
that.sb.klasses['ContainerComponent']['init'].apply(that, arguments);
}
}
source
share