Skip to content

Commit

Permalink
use willDestroy in stead of destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
pieter-v committed Sep 5, 2018
1 parent 6424a74 commit aca371c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@ember/-internals/runtime/lib/mixins/-proxy.js
Expand Up @@ -61,9 +61,9 @@ export default Mixin.create({
m.writableTag(() => combine([DirtyableTag.create(), UpdatableTag.create(CONSTANT_TAG)]));
},

destroy() {
this._super(...arguments);
willDestroy() {
this.set('content', null);
this._super(...arguments);
},

isTruthy: computed('content', function() {
Expand Down

0 comments on commit aca371c

Please sign in to comment.