#557 ✓ staged
Scott Downe

pause video when links are clicked bug

Reported by Scott Downe | June 3rd, 2011 @ 05:41 PM | in 0.7

the plugin that pauses videos when a link is clicked has an odd bug that requires jquery draggable and dual monitors to reproduce.

Basically, it fires a click event listener, then looks in the event.target.parentNode.tagName object path.

If you click a draggable, hold it, drag it off the screen, then let go, it'll say event.target.parentNode is null, then try to access .tagName, which throws an error.

A simple fix:

if ( targetElement.tagName === "A" || targetElement.parentNode && targetElement.parentNode.tagName === "A" ) {

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Popcorn.js is an HTML5 video framework that lets you bring elements of the web into your videos.

Popcorn.js is a project of Web Made Movies, Mozilla's Open Video Lab.

Shared Ticket Bins

Referenced by