Created
November 15, 2011 01:51
-
-
Save jcblw/1365874 to your computer and use it in GitHub Desktop.
asset for zoomy plugin for jquery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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)); |
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
Ah this is what I was looking for :) Why is this not part of Zoomy?