JavaScriptMVC provides a bunch of useful special events. Find out more info on the left. The following is a brief summary:
Lets you supply default behavior for an event that is preventable with event.preventDefault(). This is extremely useful for providing DOM-like api's for your widgets.
$("#tabs").delegate(".panel","default.open", function(){
$(this).show()
})
Know if an element has been removed from the page.
$("#contextMenu").bind("destroyed", function(){
// cleanup
$(document.body).unbind("click.contextMenu");
})
Listen to drag-drop events with event delegation.
$(".item").live("dragover", function(ev, drag){
// let user know that the item can be dropped
$(this).addClass("canDrop");
}).live("dropover", function(ev, drop, drag){
// let user know that the item can be dropped on
$(this).addClass('drop-able')
})