1
0
Fork 0
Dieser Commit ist enthalten in:
Angus McLeod 2023-03-15 10:38:26 +01:00
Ursprung 0e70a5a221
Commit 52fe5166cd

Datei anzeigen

@ -4,7 +4,7 @@ import { get, set } from "@ember/object";
import Mixin from "@ember/object/mixin";
import { deepEqual } from "discourse-common/lib/object";
var observedCache = [];
let observedCache = [];
export default Mixin.create({
didInsertElement() {
@ -36,7 +36,7 @@ export default Mixin.create({
listProperties(componentType, opts).forEach((property) => {
if (observedCache.includes(property)) {
obj.removeObserver(property, this, this.toggleUndo);
observedCache = observedCache.filter(p => p !== property);
observedCache = observedCache.filter((p) => p !== property);
}
});
},