Skip to content

Fix Destroy in ControlBar.js

Created by: chrishalebarnes

Added a null check so that togglePlayPauseBtnState will not explode if the button does not exist. In my particular context this was being fired after destroy was being called, so the button did not exist.

Also fixed what is presumably a typo. reset does not exist in that context, although this.reset should work.

Please do let me know if you'd like to change anything else!

Merge request reports