Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "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;
- }
Add Comment
Please, Sign In to add comment