From: David Seifried Date: Wed, 8 Jun 2011 14:39:33 +0000 (-0400) Subject: [#557] Changed all occurences of tagName to nodeName X-Git-Tag: v0.7^2~51^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ef3cdf6f1d06cfc9f1c4ba64342c3948a5a7d94e;p=popcorn-js.git [#557] Changed all occurences of tagName to nodeName --- diff --git a/plugins/pause/popcorn.pause.js b/plugins/pause/popcorn.pause.js index b4235dd..a3cec6b 100644 --- a/plugins/pause/popcorn.pause.js +++ b/plugins/pause/popcorn.pause.js @@ -19,7 +19,7 @@ document.addEventListener( "click", function( event ) { var targetElement = event.target; //Some browsers use an element as the target, some use the text node inside - if ( targetElement.tagName === "A" || targetElement.parentNode && targetElement.parentNode.tagName === "A" ) { + if ( targetElement.nodeName === "A" || targetElement.parentNode && targetElement.parentNode.nodeName === "A" ) { Popcorn.instances.forEach( function( video ) { if ( video.options.pauseOnLinkClicked ) { video.pause();