Created
February 12, 2019 04:24
-
-
Save NetanelBasal/3314195bd1b6c2a7b32d1d36ec73add2 to your computer and use it in GitHub Desktop.
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
listen(target, event, callback) { | |
if (typeof target === 'string') { | |
return this.eventManager.addGlobalEventListener( | |
target, event, decoratePreventDefault(callback)); | |
} | |
return this.eventManager.addEventListener( | |
target, event, decoratePreventDefault(callback)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment