Created
November 14, 2012 20:32
-
-
Save jhubert/4074583 to your computer and use it in GitHub Desktop.
YUI Event management between widgets under the same view [pseudo code]
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
| View: | |
| initializer: | |
| this.widget1 = new Y.Widget | |
| this.widget2 = new Y.Widget | |
| this.widget1.addTarget(this) | |
| this.widget2.addTarget(this) | |
| this.widget1.on('blah', this.widget2.handleBlah, this) | |
| this.widget2.on('blah', this.widget1.handleBlah, this) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment