1
0
mirror of https://github.com/flarum/core.git synced 2025-07-20 16:21:18 +02:00

Properly initialise subtree retainers

This commit is contained in:
Toby Zerner
2015-05-18 10:35:12 +09:30
parent f6873f6822
commit 72e9205b50

View File

@@ -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 = {};
}
}