Skip to content

Instantly share code, notes, and snippets.

@ColinCampbell
Created July 12, 2011 17:46
Show Gist options
  • Save ColinCampbell/1078522 to your computer and use it in GitHub Desktop.
Save ColinCampbell/1078522 to your computer and use it in GitHub Desktop.
var data = MyApp.store.find([Scm.Product, Scm.Taxon]);
data.addObserver('status', this, function observer() {
if (data.get('status') === SC.Record.READY_CLEAN) {
data.removeObserer('status', this, observer);
var products = data.find(SC.Query.local(Scm.Product));
var taxons = data.find(SC.Query.local(Scm.Taxon));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment