Permalink
Browse files

Ensure the caching store has matching model and idProperty

  • Loading branch information...
1 parent c234627 commit 984c01fa811304c4757800f1a4d0be4b68b1b0e2 @kriszyp kriszyp committed Feb 11, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 Cache.js
View
@@ -20,6 +20,8 @@ define([
if (!this.cachingStore) {
this.cachingStore = new Memory();
}
+ this.cachingStore.model = this.model;
+ this.cachingStore.idProperty = this.idProperty;
this._collectionCache = {};
},
_tryCacheForResults: function (method, serialized, args) {

0 comments on commit 984c01f

Please sign in to comment.