Skip to content

Instantly share code, notes, and snippets.

@jcblw
Created November 15, 2011 01:51
Show Gist options
  • Save jcblw/1365874 to your computer and use it in GitHub Desktop.
Save jcblw/1365874 to your computer and use it in GitHub Desktop.
asset for zoomy plugin for jquery
(function($){
$.fn.killZoomy = function(){
$(this)
//Unbinding any events attached
//be carefull not just zoomy functions
.removeClass('parent-zoom')
.unbind('click mousemove mouseover mouseleave')
//Removing inline style added inline from Zoomy
.attr('style', '')
.children('img')
.attr('style', '')
.siblings('.zoomy')
//Removing Zoomy no zoomBar in 1.3 and higher
.remove();
}
}(jQuery));
@thriveweb
Copy link

Ah this is what I was looking for :) Why is this not part of Zoomy?

@thriveweb
Copy link

I noticed this didn't remove all the elements when on a touch device. See my update here https://gist.github.com/deanoakley/022a3ba55716dd5bdd49

You might have a better way of doing this!
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment