$.Controller('Alive',{
    //static init
    init: function(){
        steal.dev.log('The class init will be invoked whenever you declare a class');
    }
},{
    init: function(){
        steal.dev.log('The instance init will be invoked whenever you declare a new instance');
    }
});

/*Console: The class init will be invoked whenever you declare a class */
new alive(element);
/*Console: The instance init will be invoked whenever you declare a new instance */

Comments

comments powered by Disqus