mirror of
https://github.com/flarum/core.git
synced 2025-01-17 22:29:15 +01:00
Properly initialise subtree retainers
This commit is contained in:
parent
281f475d28
commit
a8a2596228
@ -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 = {};
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user