mirror of
https://github.com/flarum/core.git
synced 2025-07-22 01:01:28 +02:00
Properly initialise subtree retainers
This commit is contained in:
@@ -13,6 +13,7 @@ export default class SubtreeRetainer {
|
|||||||
constructor() {
|
constructor() {
|
||||||
this.invalidate();
|
this.invalidate();
|
||||||
this.callbacks = [].slice.call(arguments);
|
this.callbacks = [].slice.call(arguments);
|
||||||
|
this.old = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
retain() {
|
retain() {
|
||||||
@@ -32,6 +33,6 @@ export default class SubtreeRetainer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
invalidate() {
|
invalidate() {
|
||||||
this.old = [];
|
this.old = {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user