only load one video element for videos with one part

This commit is contained in:
j 2013-07-22 21:46:43 +00:00
parent e2be60c762
commit db321b583b

View file

@ -211,6 +211,9 @@ Ox.VideoElement = function(options, self) {
} }
function loadNextVideo() { function loadNextVideo() {
if (self.numberOfItems <= 1) {
return;
}
var item = self.items[self.currentItem], var item = self.items[self.currentItem],
nextItem = Ox.mod(self.currentItem + 1, self.numberOfItems), nextItem = Ox.mod(self.currentItem + 1, self.numberOfItems),
next = self.items[nextItem], next = self.items[nextItem],