event handler signature
event handler signature
hello guys,
simple example:
$(document)
.click(function(){alert('1');})
.click(function(){alert('2')});
will alert 1 and then 2 when you click on document
$(document).unbind('click');
will delete all event handlers and maybe it is good but it would be
awesome to add something like that:
$(document)
.unbind('click', 'my event handler')
.click(function(){alert('1');},'my event handler');
idea is to provide users (and plugins?) with ability to bind/unbind
their own handlers to common objects
regards