From 1759fa6b699f5e741c458d8b382e0449ce2b53ca Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 10 Jul 2013 13:34:31 +0000 Subject: [PATCH] loop or stop if going to item -1, fixes #1637 --- source/Ox.UI/js/Video/VideoElement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/VideoElement.js b/source/Ox.UI/js/Video/VideoElement.js index e13a907d..6331cf63 100644 --- a/source/Ox.UI/js/Video/VideoElement.js +++ b/source/Ox.UI/js/Video/VideoElement.js @@ -225,7 +225,7 @@ Ox.VideoElement = function(options, self) { function setCurrentItem(item) { Ox.Log('Video', 'sCI', item, self.numberOfItems); var interval; - if(item >= self.numberOfItems) { + if(item >= self.numberOfItems || item < 0) { if (self.options.loop) { item = Ox.mod(item, self.numberOfItems); } else {