Created
December 10, 2014 20:04
-
-
Save devdays/6fef51d61da469adab66 to your computer and use it in GitHub Desktop.
Object JavaScript EC6 Lexical this
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 UiComponent { | |
let button = document.getElementById('#myButton'); | |
button.addEventListener('click', () => { | |
console.log('click'); | |
this.handleClick(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment