diff --git a/js/lib/utils/subtree-retainer.js b/js/lib/utils/subtree-retainer.js
index 154a8a56b..b6e99e318 100644
--- a/js/lib/utils/subtree-retainer.js
+++ b/js/lib/utils/subtree-retainer.js
@@ -11,7 +11,7 @@
  */
 export default class SubtreeRetainer {
   constructor() {
-    this.old = [];
+    this.clear();
     this.callbacks = [].slice.call(arguments);
   }
 
@@ -30,4 +30,8 @@ export default class SubtreeRetainer {
   add() {
     this.callbacks = this.callbacks.concat([].slice.call(arguments));
   }
+
+  clear() {
+    this.old = [];
+  }
 }