Created
October 5, 2008 02:16
-
-
Save bjc/14837 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
"Support observing non-content properties": function () { | |
this.c.fireCount = 0; | |
this.c.nonContentObserver = function () { | |
this.set('fireCount', this.get('fireCount') + 1); | |
}.observes('nonContentProp'); | |
// Fire the observer with the first set. | |
this.c.set('content', SC.Object.create()); | |
this.c.set('nonContentProp', 'test'); | |
this.c.get('fireCount').shouldEqual(1); | |
delete this.c.fireCount; | |
delete this.c.nonContentProp; | |
delete this.c.nonContentObserver; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment