Created
April 8, 2016 14:21
-
-
Save wegorich/91b954c9bc21da47f6b14aaeaef3aa76 to your computer and use it in GitHub Desktop.
Es6 custom events
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
| let e = new CustomEvent('change', { | |
| detail: {value: that.value} | |
| }); | |
| that.element.dispatchEvent(e); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment