Skip to content

Instantly share code, notes, and snippets.

View charlesjolley's full-sized avatar

Charles Jolley charlesjolley

View GitHub Profile
var myContact = SC.Object.create({
firstName: 'John',
lastName: 'Doe',
fullName: function() {
return this.getEach('firstName', 'lastName').join(' ');
}.property('firstName', 'lastName').cacheable(),
fullNameDidChange: function() {
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);
// ...
}
};
myview = SC.SlideshowView.extend({
content: 'url1 url2 url3'.w(),
exampelView: SC.ImageView,
transition: SC.KenBurnsTransition
});