Created
July 23, 2014 12:37
-
-
Save benash/9105d0f36795e7dae38a 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
// Handling an event with on | |
pageEventBus.on('advancedModeSelected', this.switchToAdvancedMode, this); | |
// Handling the same event with listenTo (preferred) | |
this.listenTo(pageEventBus, 'advancedModeSelected', this.switchToAdvancedMode); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment