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

Fix: only hide the filmstrip if it exists #309

Merged
merged 1 commit into from
Aug 15, 2017
Merged

Fix: only hide the filmstrip if it exists #309

merged 1 commit into from
Aug 15, 2017

Conversation

jeremypress
Copy link
Contributor

No description provided.

@@ -611,7 +611,9 @@ class MediaControls extends EventEmitter {

if (this.wrapperEl && this.wrapperEl.parentNode) {
this.wrapperEl.parentNode.classList.remove(SHOW_CONTROLS_CLASS);
this.filmstripHideHandler();
if (this.filmstripEl) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any thoughts on putting this check inside of the handler? That way filmstripHideHandler can be a safe function itself.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call, done.

@jeremypress jeremypress merged commit 1c70dd4 into box:master Aug 15, 2017
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.

3 participants