From fe188e12b325484f1812d9ca53d30b6012d9ddee Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 23 Jan 2015 23:02:13 -0800 Subject: [PATCH] Don't set loop attribute of non-video. --- builds/appchan-x.user.js | 4 +++- builds/crx/script.js | 4 +++- src/Images/Gallery.coffee | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 3225870b7..143080e15 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -11392,7 +11392,9 @@ } Gallery.cleanupTimer(); current = Gallery.nodes.current; - current.loop = current.nodeName === 'VIDEO'; + if (current.nodeName === 'VIDEO') { + current.loop = true; + } $.rmClass(Gallery.nodes.buttons, 'gal-playing'); return Gallery.slideshow = false; }, diff --git a/builds/crx/script.js b/builds/crx/script.js index 43c6415bd..45e7bbe8c 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -11428,7 +11428,9 @@ } Gallery.cleanupTimer(); current = Gallery.nodes.current; - current.loop = current.nodeName === 'VIDEO'; + if (current.nodeName === 'VIDEO') { + current.loop = true; + } $.rmClass(Gallery.nodes.buttons, 'gal-playing'); return Gallery.slideshow = false; }, diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index 1411978d4..c6605eb92 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -269,7 +269,7 @@ Gallery = return unless Gallery.slideshow Gallery.cleanupTimer() {current} = Gallery.nodes - current.loop = current.nodeName is 'VIDEO' + current.loop = true if current.nodeName is 'VIDEO' $.rmClass Gallery.nodes.buttons, 'gal-playing' Gallery.slideshow = false