-
-
Save hex13/595b9e6be9d4c9e0fb9c4da2141bc73c 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
class Application { | |
constructor(logoUrl, onLoad) { | |
this.logo = new Image; | |
this.logo.src = logoUrl; | |
this.callback = onLoad; | |
this.logo.onLoad = this.run.bind(this); | |
} | |
run() { | |
// some other things | |
this.callback(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment