Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code cleanup for Observer class #2041

Merged
merged 3 commits into from
Aug 14, 2020
Merged

Code cleanup for Observer class #2041

merged 3 commits into from
Aug 14, 2020

Conversation

sundayz
Copy link
Contributor

@sundayz sundayz commented Aug 13, 2020

Complete a todo note: initialize Observer handlers in constructor and remove checks in un and on methods, this.handlers can never be null anymore.

Also clean up a little bit (=== instead of ==, jsdoc and shorter arrow functions)

@sundayz sundayz self-assigned this Aug 13, 2020
@thijstriemstra thijstriemstra changed the title Code Cleanup: Observer class Code cleanup for Observer class Aug 14, 2020
@thijstriemstra thijstriemstra merged commit 590d9cc into katspaugh:master Aug 14, 2020
@sundayz sundayz deleted the observer-cleanup branch August 14, 2020 18:41
thijstriemstra pushed a commit that referenced this pull request Sep 24, 2020
* Revert "Code cleanup for Observer class (#2041)"

This reverts commit 590d9cc.

* Update CHANGES.md
marizuccara pushed a commit to marizuccara/wavesurfer.js that referenced this pull request Nov 28, 2020
* Initialize handlers dictionary in constructor and remove conditional assignment

* reset handlers to empty object in unAll

* strict equality check, add type hint comments and cleanup some code
marizuccara pushed a commit to marizuccara/wavesurfer.js that referenced this pull request Nov 28, 2020
…2069)

* Revert "Code cleanup for Observer class (katspaugh#2041)"

This reverts commit 590d9cc.

* Update CHANGES.md
sandiz pushed a commit to sandiz/wavesurfer.js that referenced this pull request Sep 1, 2021
* Initialize handlers dictionary in constructor and remove conditional assignment

* reset handlers to empty object in unAll

* strict equality check, add type hint comments and cleanup some code
sandiz pushed a commit to sandiz/wavesurfer.js that referenced this pull request Sep 1, 2021
…2069)

* Revert "Code cleanup for Observer class (katspaugh#2041)"

This reverts commit 590d9cc.

* Update CHANGES.md
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.

None yet

3 participants