Revision: 24681
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 8, 2010 14:25 by ascarion
Initial Code
function remove() {
$('.elements').each(function() {
if ($(this).data('events')) {
$(this)
.data('eventStore', eval($(this).data('events').toSource()))
.unbind();
}
});
}
function restore() {
$('.elements').each(function() {
var events = $(this).data('eventStore');
if (events) {
for (var type in events) {
for (var num in events[type]) {
$(this).bind(type, events[type][num].handler);
}
}
}
});
}
Initial URL
Initial Description
Initial Title
Remove and restore event handlers
Initial Tags
Initial Language
jQuery