Skip to content

Instantly share code, notes, and snippets.

@kcarriedo
Created August 15, 2010 15:08
Show Gist options
  • Select an option

  • Save kcarriedo/525581 to your computer and use it in GitHub Desktop.

Select an option

Save kcarriedo/525581 to your computer and use it in GitHub Desktop.
loadRecords: function(recordTypes, dataHashes, ids) {
var isArray = SC.typeOf(recordTypes) === SC.T_ARRAY,
len = dataHashes.get('length'),
ret = [],
K = SC.Record,
recordType, id, primaryKey, idx, dataHash, storeKey;
// save lookup info
if (!isArray) {
recordType = recordTypes || SC.Record;
primaryKey = recordType.prototype.primaryKey ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment