Skip to content

Instantly share code, notes, and snippets.

View mauritslamers's full-sized avatar

Maurits Lamers mauritslamers

  • Den Haag, Netherlands
View GitHub Profile
SC.RunLoop.begin();
Arrayobservers.setPath('objects.1.foo', 5); // don't know what you are actually doing
SC.RunLoop.end();
Arrayobservers.contentNotifyingObjects.get('computedProperty'); //should be 6
Arrayobservers = SC.Application.create({
NAMESPACE: 'Arrayobservers',
VERSION: '0.1.0',
store: SC.Store.create().from(SC.Record.fixtures)
});
Arrayobservers.objects = [SC.Object.create({foo: 1}), SC.Object.create({foo: 2})];