Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Applied a fix to the _fetchDataAndLoadRecords method when recordType …

…is null
  • Loading branch information...
commit 7ddb56410b8f87d51c56ecbe0cea789337ae095c 1 parent 0304688
@mlcohen mlcohen authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 frameworks/local/local.js
View
4 frameworks/local/local.js
@@ -113,9 +113,11 @@ SCUDS.LocalDataSource = SC.DataSource.extend({
*/
_fetchDataAndLoadRecords: function(recordTypes, store, query){
var recordType = recordTypes.pop(), that = this;
- var recordTypeString = SC.browser.msie ? recordType._object_className : recordType.toString();
var ds = this._getDataStoreForRecordType(recordType);
+ var recordTypeString;
+ if (recordType) recordTypeString = SC.browser.msie ? recordType._object_className : recordType.toString();
+
if (ds && !this._beenFetched[recordTypeString]) {
var records = ds.getAll();
Please sign in to comment.
Something went wrong with that request. Please try again.