Skip to content

Commit

Permalink
Fix scope memory leak (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer authored Oct 25, 2018
1 parent 4ab6e89 commit 9e89c10
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions addon/services/-observer-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,15 @@ export default class ObserverAdmin extends Service {
}
}

/**
* @method willDestroy
* @public
*/
willDestroy() {
this._super(...arguments);
this._DOMRef = null;
}

/**
* use function composition to curry observerOptions
*
Expand Down

0 comments on commit 9e89c10

Please sign in to comment.