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

Event names into separate file #589

Merged

Conversation

JustinHoldstock
Copy link
Contributor

This pull request moves all viewer events into events.js to provide documentation for each event and reduce possibility of using the wrong event names.

@boxcla
Copy link

boxcla commented Jan 17, 2018

Verified that @JustinHoldstock has signed the CLA. Thanks for the pull request!

@@ -0,0 +1,13 @@
// Events emitted by Viewers
// eslint-disable-next-line import/prefer-default-export
export const VIEWER_EVENTS = {
Copy link
Contributor

Choose a reason for hiding this comment

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

could we rename it to VIEWER_EVENT rather than VIEWER_EVENTS?

notificationShow: 'notificationshow', // Show notification modal.
notificationHide: 'notificationhide', // Hide notification modal.
mediaEndAutoplay: 'mediaendautoplay', // Media playback has completed, with autoplay enabled.
generic: 'viewerevent' // The generic default viewer event
Copy link
Contributor

Choose a reason for hiding this comment

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

default?

@JustinHoldstock JustinHoldstock merged commit 3805904 into box:master Jan 18, 2018
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.

4 participants