-
-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(AbstractWidget): Ensure we do not re-register callbacks
`listenEvents` would usually be called by `setEnable` and `setInteractor`, which would register callbacks twice. Also, `listenEvents` is part of the publicAPI, so callbacks could have been registered again by explicitly calling that function. We now ensure that those callbacks are unsubscribed from the event before subscribing again.
- Loading branch information
Alexis Girault
committed
Jan 31, 2018
1 parent
73c48a4
commit 93be5c3
Showing
1 changed file
with
13 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters