forked from 0x2620/oxjs
use Ox.break
This commit is contained in:
parent
3d4a79b6a2
commit
04784630d3
42 changed files with 117 additions and 118 deletions
|
|
@ -1214,7 +1214,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
&& v.out > self.options.position
|
||||
) {
|
||||
censored = true;
|
||||
return false;
|
||||
Ox.break();
|
||||
}
|
||||
});
|
||||
return censored;
|
||||
|
|
@ -1392,7 +1392,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
&& v.out >= self.options.position
|
||||
) {
|
||||
subtitle = v.text;
|
||||
return false;
|
||||
Ox.break();
|
||||
}
|
||||
});
|
||||
return subtitle;
|
||||
|
|
@ -1441,7 +1441,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
var left = 0;
|
||||
Ox.forEach(self.options.controlsBottom, function(control) {
|
||||
if (control == 'timeline') {
|
||||
return false;
|
||||
Ox.break();
|
||||
}
|
||||
left += control == 'position' ? self.positionWidth : 16
|
||||
});
|
||||
|
|
@ -1525,7 +1525,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
) {
|
||||
result = v
|
||||
found = true;
|
||||
return false;
|
||||
Ox.break();
|
||||
}
|
||||
});
|
||||
direction == -1 && self.results.reverse();
|
||||
|
|
@ -1882,16 +1882,16 @@ Ox.VideoPlayer = function(options, self) {
|
|||
function setMarkers() {
|
||||
//Ox.Log('Video', 'SET MARKERS', self.options.position, self.options['in'], self.options.out, self.$pointMarker);
|
||||
Ox.forEach(self.$posterMarker, function(marker) {
|
||||
isEqual(self.options.position, self.options.posterFrame) ?
|
||||
marker.show() : marker.hide();
|
||||
isEqual(self.options.position, self.options.posterFrame)
|
||||
? marker.show() : marker.hide();
|
||||
});
|
||||
Ox.forEach(self.$pointMarker, function(markers, point) {
|
||||
Ox.forEach(markers, function(marker) {
|
||||
//Ox.Log('Video', self.options.position, self.options[point], isEqual(self.options.position, self.options[point]))
|
||||
// fixme: there's a bug in jquery and/or webkit
|
||||
// on load, show() doesn't work
|
||||
isEqual(self.options.position, self.options[point]) ?
|
||||
marker.css({display: 'block'}) : marker.hide();
|
||||
isEqual(self.options.position, self.options[point])
|
||||
? marker.css({display: 'block'}) : marker.hide();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue