From db321b583be965926247457f1ea4d0578eeaa8cf Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 22 Jul 2013 21:46:43 +0000 Subject: [PATCH] only load one video element for videos with one part --- source/Ox.UI/js/Video/VideoElement.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/Ox.UI/js/Video/VideoElement.js b/source/Ox.UI/js/Video/VideoElement.js index 4005e6a4..ca583d84 100644 --- a/source/Ox.UI/js/Video/VideoElement.js +++ b/source/Ox.UI/js/Video/VideoElement.js @@ -211,6 +211,9 @@ Ox.VideoElement = function(options, self) { } function loadNextVideo() { + if (self.numberOfItems <= 1) { + return; + } var item = self.items[self.currentItem], nextItem = Ox.mod(self.currentItem + 1, self.numberOfItems), next = self.items[nextItem],