Skip to content

Instantly share code, notes, and snippets.

View charlesjolley's full-sized avatar

Charles Jolley charlesjolley

View GitHub Profile
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);
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);
// ...
}
};