Skip to content

fix: prevent negative listener count in AnimatedColor#5

Open
mhdamirhamza wants to merge 1 commit into
mainfrom
add-animatedcolor-tests
Open

fix: prevent negative listener count in AnimatedColor#5
mhdamirhamza wants to merge 1 commit into
mainfrom
add-animatedcolor-tests

Conversation

@mhdamirhamza

Copy link
Copy Markdown
Owner

Added _listeners map and overridden addListener, removeListener, and removeAllListeners to mirror AnimatedValueXY. This prevents _listenerCount from going negative when __detach is called before removeListener.

Added _listeners map and overridden addListener, removeListener, and removeAllListeners to mirror AnimatedValueXY. This prevents _listenerCount from going negative when __detach is called before removeListener.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant