-
-
Save skinnyfads/b3ceff13543ed98a54239897ee87ff29 to your computer and use it in GitHub Desktop.
document.createElement proxy function
This file contains 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
var __createElement__ = document.createElement; | |
document.createElement = function(tagName, options){ | |
console.log(`Element <${tagName}> created.`); | |
return __createElement__.call(this, tagName, options); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment