Skip to content

Instantly share code, notes, and snippets.

@etgryphon
Created May 22, 2009 20:01
Show Gist options
  • Save etgryphon/116324 to your computer and use it in GitHub Desktop.
Save etgryphon/116324 to your computer and use it in GitHub Desktop.
/** @private */
init: function() {
sc_super() ;
var RecordType = this.get('recordType') ;
if (RecordType) {
var q = SC.Query.create({recordType: RecordType, orderBy: 'name'});
var collection = SC.Store.findAll(q);
this.set('content', collection) ;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment