Skip to content

Commit

Permalink
Ensure the caching store has matching model and idProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Feb 11, 2014
1 parent c234627 commit 984c01f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cache.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 984c01f

Please sign in to comment.