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],