Skip to content

Commit

Permalink
fix(core): remove placeholderReplacer properly
Browse files Browse the repository at this point in the history
  • Loading branch information
SgLy committed Nov 1, 2024
1 parent 8ce92e7 commit 4feefec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glass-easel/src/component_space.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4feefec

Please sign in to comment.