Skip to content

Instantly share code, notes, and snippets.

@DavidLGoldberg
Created December 2, 2014 19:25
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 DavidLGoldberg/059e2bb5a39166be8e01 to your computer and use it in GitHub Desktop.
Save DavidLGoldberg/059e2bb5a39166be8e01 to your computer and use it in GitHub Desktop.
Log document.registerElement() for use with Polymer / Custom Elements
<script>
originalRegister = document.registerElement;
document.registerElement = function() {
console.log('document.registerElement called with:', arguments);
// Call the function as it would have been called normally:
originalRegister.apply(this, arguments);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment