Skip to content

Commit

Permalink
cleanup bindings if the proxy is destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
pieter-v committed Aug 3, 2018
1 parent 9ea80e1 commit bc3194e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/ember-runtime/lib/mixins/-proxy.js
Expand Up @@ -61,6 +61,11 @@ export default Mixin.create({
m.writableTag(() => combine([DirtyableTag.create(), UpdatableTag.create(CONSTANT_TAG)]));
},

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

isTruthy: computed('content', function() {
return !!get(this, 'content');
}),
Expand Down

0 comments on commit bc3194e

Please sign in to comment.