Skip to content

Commit

Permalink
Merge pull request #212 from SgLy/fix-removal-of-placeholder-replacer
Browse files Browse the repository at this point in the history
fix(core): remove placeholderReplacer properly
  • Loading branch information
SgLy authored Nov 1, 2024
2 parents ff37da4 + 4feefec commit 3d0ecba
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)
this._$callbacks.splice(index, 1)
if (index !== -1) this._$callbacks.splice(index, 1)
}

call(c: GeneralComponentDefinition) {
Expand Down

0 comments on commit 3d0ecba

Please sign in to comment.