Skip to content

Instantly share code, notes, and snippets.

@Hypher
Created February 8, 2013 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hypher/4739219 to your computer and use it in GitHub Desktop.
Save Hypher/4739219 to your computer and use it in GitHub Desktop.
var _cleanData = $.cleanData;
$.cleanData = function( elems ) {
for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
try {
$( elem ).triggerHandler( "DOMNodeRemoved" );
} catch( e ) {
}
}
return _cleanData( elems );
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment