Skip to content

Instantly share code, notes, and snippets.

@DavidLGoldberg
Created December 2, 2014 19:25
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