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
var myContact = SC.Object.create({ | |
firstName: 'John', | |
lastName: 'Doe', | |
fullName: function() { | |
return this.getEach('firstName', 'lastName').join(' '); | |
}.property('firstName', 'lastName').cacheable(), | |
fullNameDidChange: function() { |
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
var query = SC.Query.local(MyApp.Record); | |
var data = MyApp.store.find(query); | |
// old way | |
var f = function() { | |
if (data.get('status') & SC.Record.READY) { | |
data.removeObserver('status', this, f); | |
// ... | |
} | |
}; |
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
myview = SC.SlideshowView.extend({ | |
content: 'url1 url2 url3'.w(), | |
exampelView: SC.ImageView, | |
transition: SC.KenBurnsTransition | |
}); |
NewerOlder