diff --git a/js/lib/utils/subtree-retainer.js b/js/lib/utils/subtree-retainer.js index b5430788f..ad82043ca 100644 --- a/js/lib/utils/subtree-retainer.js +++ b/js/lib/utils/subtree-retainer.js @@ -13,6 +13,7 @@ export default class SubtreeRetainer { constructor() { this.invalidate(); this.callbacks = [].slice.call(arguments); + this.old = {}; } retain() { @@ -32,6 +33,6 @@ export default class SubtreeRetainer { } invalidate() { - this.old = []; + this.old = {}; } }