Return to Snippet

Revision: 45736
at May 6, 2011 17:04 by maxim_

Initial Code
var zoomEvents = $.extend(true,{},'events')); //deep copy of an event object

jqzoom.trigger('mouseleave'); // this just emulates mouseleave event in order to hide zoom box

for (i in zoomEvents) {
	var evt = zoomEvents[i];
	for (k in evt) {
		jqzoom.bind(evt[k].type, evt[k].handler)

Initial URL

Initial Description
I needed to temporarily unbind jqZoom plugin events from a DOM-element and store them for later use. That's what worked for me. Any comments and suggestions would be much appreciated!

Initial Title
Store DOM object\'s events for later reuse, aka temporary unbind (jqzoom)

Initial Tags

Initial Language