mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
Hello, Just a couple of changes. The change in add() will make sure a callback is never registered twice (slight change of behavior, consistent with the signals library, seems harmless to me). The change in remove() will make sure that a listener is in the list before removing it (this one fix a bug, if indexOf == -1 then splice will remove the wrong listener). Thanks for the hardwork !
Description
Languages
C#
20.3%
HTML
17%
C++
16.6%
C
10.4%
TypeScript
9.1%
Other
26.4%