Skip to content

Commit

Permalink
Merge pull request #4913 from runspired/fix/container-destroy
Browse files Browse the repository at this point in the history
[BUGFIX canary] don't prematurely nullify props
  • Loading branch information
stefanpenner authored Apr 5, 2017
2 parents 33f0ced + c2dbde3 commit d9d6448
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions addon/-private/system/store/container-instance-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const {
*/
export default class ContainerInstanceCache {
constructor(owner, store) {
this.isDestroying = false;
this.isDestroyed = false;
this._owner = owner;
this._store = store;
this._namespaces = {
Expand Down Expand Up @@ -111,11 +113,10 @@ export default class ContainerInstanceCache {
}

destroy() {
this.isDestroying = true;
this.destroyCache(this._namespaces.adapter);
this.destroyCache(this._namespaces.serializer);
this._namespaces = null;
this._store = null;
this._owner = null;
this.isDestroyed = true;
}

toString() {
Expand Down

0 comments on commit d9d6448

Please sign in to comment.