In JavascriptMVC's Controller they use the following format for event handling
Instead of classic jquery
$(function(){
$('#tabs').click(someCallbackFunction1)
$('#tabs .tab').click(someCallbackFunction2)
$('#tabs .delete click').click(someCallbackFunction3)
});
they do this
$.Controller('Tabs',{
click: function() {...},
'.tab click' : function() {...},
'.delete click' : function() {...}
})
Is there any way I could set an click event handler for the following jquery selection using their way:
$('#continent_select').siblings("ul:first").find('a').click(function() {
console.log('here');
});
And if it's not possible, where is the best place to init this handler?