Created
March 14, 2017 04:02
-
-
Save jiyu3/1ed4edb20c961da7547b9363c704cafa to your computer and use it in GitHub Desktop.
ページ内の全てのイベントを監視する ref: http://qiita.com/jiyu/items/c39354bb256062dc7a81
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
(function() { | |
let nodes = [].concat(window, [].slice.call(document.getElementsByTagName("*"))); | |
nodes.forEach(node => { | |
monitorEvents(node, Object.keys(getEventListeners(node))); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment