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
MyApp.aSimpleController= SC.ObjectController.create({ | |
contentBinding : SC.Binding.single('MyApp.anArrayController.selection') | |
}); | |
MyApp.anotherArrayController= SC.ArrayController.create({ | |
abcBinding: 'MyApp.aSimpleController.content', | |
xyzBinding: SC.Binding.oneWay('MyApp.anotherObjectController.content'), | |
observeMe: function(){ | |
var abc= this.get('abc'); | |
var xyz= this.get('xyz'); |
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
Creating the record: | |
var record = Rapid.store.createRecord(Rapid.Check, { | |
guid: '@123' | |
}); | |
relationA.get('checks').pushObject(record); | |
... set up an observer on record status | |
Rapid.store.commitRecords(); | |
the record is created, but relationA.checks points to @123 instead of the storeKey's id (1000) |
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
I'm trying to reuse a query object: | |
var q = this._q; | |
if (!q){ | |
q = this._q = SC.Query.create({ | |
recordType: Rapid.Application | |
}); | |
} | |
q.set('conditions', 'currentStep = %@'); | |
q.set('parameters', [this.get('content')]); |
OlderNewer