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
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 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
childViews: ['labelView', 'hintView'], | |
labelView: SC.LabelView.design({ | |
valueBinding: '.parentView*content.value', | |
isEditable: '.parentView*content.given', | |
// NOTE: all methods should normally be in a subclass, not in the design | |
click: function(evt) { | |
return this.touchStart(evt); |