Created
December 2, 2014 19:25
Log document.registerElement() for use with Polymer / Custom Elements
This file contains hidden or 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
<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