Skip to content

Instantly share code, notes, and snippets.

@anutron
Created May 15, 2009 23:13
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 anutron/112486 to your computer and use it in GitHub Desktop.
Save anutron/112486 to your computer and use it in GitHub Desktop.
dispose: (Browser.Engine.trident && window.location.href.test(/^https/i)) ?
function(){
if (this.parentNode) {
var bg = this.style.background;
this.style.background = '';
this.parentNode.removeChild(this);
this.style.background = bg;
}
return this;
} : function(){
return (this.parentNode) ? this.parentNode.removeChild(this) : this;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment