jQuery.Controller.static.listensTo  attribute     

A list of special events this controller listens too. You only need to add event names that are whole words (ie have no special characters).

$.Controller('TabPanel',{
  listensTo : ['show']
},{
  'show' : function(){
    this.element.show();
  }
})

$('.foo').tab_panel().trigger("show");
© Jupiter IT - JavaScriptMVC Training and Support