Created
October 23, 2014 22:27
-
-
Save adamazing/a10f1bba309254e90f05 to your computer and use it in GitHub Desktop.
Quick snippet to stop the jQuery cycle2 plugin stripping the ID of slide elements due to IE7's shallow clone method.
This file contains 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
if(navigator.appVersion.indexOf("MSIE 7.")!=-1 || navigator.appVersion.indexOf("MSIE 6.")!=-1 ){}else{ | |
clone.removeAttr( 'id name rel' ).find( '[id],[name],[rel]' ).removeAttr( 'id name rel' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment