Created
August 15, 2010 15:08
-
-
Save kcarriedo/525581 to your computer and use it in GitHub Desktop.
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
| 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