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: Remove duplicate playing listener from redispatch. #473

Merged
merged 2 commits into from
Mar 20, 2019

Conversation

brandonocasey
Copy link
Contributor

@brandonocasey brandonocasey commented Mar 11, 2019

playing is an event that already exists in VIDEO_EVENTS, this may have caused us to fire two playing or adplaying events sometimes.

src/plugin.js Outdated
const videoEvents = [];

// dedupe event names
VIDEO_EVENTS.concat(['firstplay', 'loadedalldata', 'playing']).forEach(function(eventName) {
Copy link
Member

Choose a reason for hiding this comment

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

Why not remove playing here entirely? We know it's a dupe.

Copy link
Member

@misteroneill misteroneill left a comment

Choose a reason for hiding this comment

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

Went ahead and made the change.

@misteroneill misteroneill changed the title fix: remove duplicate playing fix: Remove duplicate playing listener from redispatch. Mar 20, 2019
@misteroneill misteroneill merged commit 944c363 into master Mar 20, 2019
@misteroneill misteroneill deleted the fix/remove-duplicate-playing branch March 20, 2019 19:48
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.

2 participants