Skip to content

Commit

Permalink
Clear the _containerCache on store destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurphyau committed Feb 26, 2015
1 parent 6ac7380 commit 9fcf261
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/ember-data/lib/system/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -1899,6 +1899,12 @@ Store = Ember.Object.extend({
return typeMaps[entry]['type'];
}

for (var cacheKey in this._containerCache) {
this._containerCache[cacheKey].destroy();
delete this._containerCache[cacheKey];
}

delete this._containerCache;
},

/**
Expand Down

0 comments on commit 9fcf261

Please sign in to comment.