From ef3cdf6f1d06cfc9f1c4ba64342c3948a5a7d94e Mon Sep 17 00:00:00 2001 From: David Seifried Date: Wed, 8 Jun 2011 10:39:33 -0400 Subject: [PATCH] [#557] Changed all occurences of tagName to nodeName --- plugins/pause/popcorn.pause.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.43.0