From 4feefece989ba388b2bdbd90ca23d64dae3b428a Mon Sep 17 00:00:00 2001 From: SgLy <775150558@qq.com> Date: Fri, 1 Nov 2024 19:41:52 +0800 Subject: [PATCH] fix(core): remove placeholderReplacer properly --- glass-easel/src/component_space.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glass-easel/src/component_space.ts b/glass-easel/src/component_space.ts index f0df83b..37fecfa 100644 --- a/glass-easel/src/component_space.ts +++ b/glass-easel/src/component_space.ts @@ -104,7 +104,7 @@ export class ComponentWaitingList { remove(callback: (c: GeneralComponentDefinition) => void) { const index = this._$callbacks.indexOf(callback) // must guarantee order here (cannot swap-remove) - if (index !== 1) this._$callbacks.splice(index, 1) + if (index !== -1) this._$callbacks.splice(index, 1) } call(c: GeneralComponentDefinition) {