scoped models

0 views
Skip to first unread message

deadlyicon

unread,
Mar 23, 2009, 9:06:02 PM3/23/09
to Jester JS
I'd like to suggest this as an easy way to enable scoping Jester
models.

Jester.Constructor = function(model){
return '(function(){ return '+
(function CONSTRUCTOR() {
this.klass = CONSTRUCTOR;
this.initialize.apply(this, arguments);
this.after_initialization.apply(this, arguments);
}).toString().replace(/CONSTRUCTOR/g, model) +
'})();'
}
Reply all
Reply to author
Forward
0 new messages