Skip to content

Instantly share code, notes, and snippets.

@hallvors
Created July 19, 2014 23:16
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 hallvors/eed9f1b68e08cd5a651a to your computer and use it in GitHub Desktop.
Save hallvors/eed9f1b68e08cd5a651a to your computer and use it in GitHub Desktop.
HTMLElement.prototype.appendChild = (function(originalMethod){
return function(child){
console.log('appending '+child);
return originalMethod.call(this, child);
}
})(HTMLElement.prototype.appendChild)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment