Created
April 4, 2014 18:13
-
-
Save zxqx/9980138 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
// in the listening view (could be HeroWidgetContainer.js or any view) | |
// 'someView' could be DashboardView, Footprint, or any View obj | |
this.listenTo(someView, 'walkthroughEvent1', this.startWalkthrough); | |
// in someView (that will be emitting events) | |
this.trigger('walkthroughEvent1'); | |
// if you need to stop listening to an obj's event | |
this.stopListening(someView, 'walkthroughEvent1'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment