This commit is contained in:
rolux 2012-05-25 09:46:34 +02:00
parent c30fe02850
commit 147d637b7b
32 changed files with 83 additions and 83 deletions

View file

@ -154,7 +154,7 @@ Ox.load.Geo = function(options, callback) {
Ox.forEach(Ox.COUNTRIES, function(c) { Ox.forEach(Ox.COUNTRIES, function(c) {
if (c.code == code) { if (c.code == code) {
country = c; country = c;
Ox.Break()(); Ox.Break();
} }
}); });
return country; return country;
@ -193,7 +193,7 @@ Ox.load.Geo = function(options, callback) {
Ox.forEach(Ox.COUNTRIES, function(c) { Ox.forEach(Ox.COUNTRIES, function(c) {
if (name == c.name || name == c.googleName || name == c.imdbName) { if (name == c.name || name == c.googleName || name == c.imdbName) {
country = c; country = c;
Ox.Break()(); Ox.Break();
} }
}); });
return country; return country;

View file

@ -446,14 +446,14 @@ Ox.load.Image = function(options, callback) {
str = ''; str = '';
} else { } else {
// After length more bytes, break // After length more bytes, break
Ox.Break()(); Ox.Break();
} }
} }
} }
}); });
done == 2 && Ox.Break()(); done == 2 && Ox.Break();
}); });
done == 2 && Ox.Break()(); done == 2 && Ox.Break();
} }
}, function() { }, function() {
try { try {

View file

@ -330,7 +330,7 @@ Ox.load.UI = function(options, callback) {
&& !/chrome/.test(userAgent) && !/linux/.test(userAgent) && !/chrome/.test(userAgent) && !/linux/.test(userAgent)
)) { )) {
format = f; format = f;
Ox.Break()(); Ox.Break();
} }
} }
}); });

View file

@ -84,7 +84,7 @@ Ox.Resizebar = function(options, self) {
Ox.forEach(self.options.resize, function(v) { Ox.forEach(self.options.resize, function(v) {
if (self.options.size >= v - 8 && self.options.size <= v + 8) { if (self.options.size >= v - 8 && self.options.size <= v + 8) {
self.options.size = v; self.options.size = v;
Ox.Break()(); Ox.Break();
} }
}); });
if (self.options.size != size) { if (self.options.size != size) {

View file

@ -702,7 +702,7 @@ Ox.Calendar = function(options, self) {
Ox.forEach(self.options.events, function(v) { Ox.forEach(self.options.events, function(v) {
if (v.id == id) { if (v.id == id) {
event = v; event = v;
Ox.Break()(); Ox.Break();
} }
}); });
return event; return event;
@ -777,7 +777,7 @@ Ox.Calendar = function(options, self) {
Ox.forEach(self.lineEvents, function(events, line_) { Ox.forEach(self.lineEvents, function(events, line_) {
if (Ox.getIndexById(events, id) > -1) { if (Ox.getIndexById(events, id) > -1) {
line = line_; line = line_;
Ox.Break()(); Ox.Break();
} }
}); });
return line; return line;
@ -817,12 +817,12 @@ Ox.Calendar = function(options, self) {
// if overlaps, check next line // if overlaps, check next line
if (overlaps(event, event_)) { if (overlaps(event, event_)) {
fits = false; fits = false;
Ox.Break()(); Ox.Break();
} }
}); });
if (fits) { if (fits) {
line = line_; line = line_;
Ox.Break()(); Ox.Break();
} }
}); });
if (line == self.lineEvents.length) { if (line == self.lineEvents.length) {
@ -920,7 +920,7 @@ Ox.Calendar = function(options, self) {
var width = Math.round(v.seconds * pixelsPerSecond); var width = Math.round(v.seconds * pixelsPerSecond);
if (width >= self.minLabelWidth) { if (width >= self.minLabelWidth) {
units = [self.units[i], self.units[i - 1]]; units = [self.units[i], self.units[i - 1]];
Ox.Break()(); Ox.Break();
} }
}); });
self.units.reverse(); self.units.reverse();

View file

@ -48,7 +48,7 @@ Ox.ListCalendar = function(options, self) {
if (eventDuration > duration) { if (eventDuration > duration) {
iconSize = size; iconSize = size;
} else { } else {
Ox.Break()(); Ox.Break();
} }
}); });
return data.type return data.type
@ -391,10 +391,10 @@ Ox.ListCalendar = function(options, self) {
) )
) { ) {
exists = value; exists = value;
Ox.Break()(); Ox.Break();
} }
}); });
exists && Ox.Break()(); exists && Ox.Break();
}); });
} }
if (data.id == 'name') { if (data.id == 'name') {
@ -689,7 +689,7 @@ Ox.ListCalendar = function(options, self) {
|| event.alternativeNames.indexOf(name) > -1 || event.alternativeNames.indexOf(name) > -1
) { ) {
exists = true; exists = true;
Ox.Break()(); Ox.Break();
} }
}); });
return exists; return exists;

View file

@ -141,7 +141,7 @@ Ox.DocPage = function(options, self) {
Ox.forEach(this.className.split(' '), function(v) { Ox.forEach(this.className.split(' '), function(v) {
if (/Hidden$/.test(v)) { if (/Hidden$/.test(v)) {
hidden = true; hidden = true;
Ox.Break()(); Ox.Break();
} }
}); });
if (!hidden) { if (!hidden) {

View file

@ -156,7 +156,7 @@ Ox.DocPanel = function(options, self) {
Ox.forEach(self.options.items, function(v) { Ox.forEach(self.options.items, function(v) {
if (v.name == name) { if (v.name == name) {
item = v; item = v;
Ox.Break()(); Ox.Break();
} }
}); });
return item; return item;

View file

@ -18,7 +18,7 @@ Ox.Theme = (function() {
Ox.forEach(Ox.UI.$body.attr('class').split(' '), function(className) { Ox.forEach(Ox.UI.$body.attr('class').split(' '), function(className) {
if (Ox.startsWith(className, 'OxTheme')) { if (Ox.startsWith(className, 'OxTheme')) {
theme = className.replace('OxTheme', '').toLowerCase(); theme = className.replace('OxTheme', '').toLowerCase();
Ox.Break()(); Ox.Break();
} }
}); });
return theme; return theme;
@ -105,7 +105,7 @@ Ox.Theme = (function() {
background: $element_.css('background'), background: $element_.css('background'),
color: $element_.css('color') color: $element_.css('color')
}); });
Ox.Break()(); Ox.Break();
} }
}); });
}); });

View file

@ -324,7 +324,7 @@ Ox.URL = function(options) {
value: split.join(operator), value: split.join(operator),
operator: operator operator: operator
}; };
Ox.Break()(); Ox.Break();
} }
}); });
if ( if (
@ -521,7 +521,7 @@ Ox.URL = function(options) {
state.view = view; state.view = view;
state.span = span; state.span = span;
parts.shift(); parts.shift();
Ox.Break()(); Ox.Break();
} }
}); });
} }
@ -581,7 +581,7 @@ Ox.URL = function(options) {
// sort // sort
state.sort = parseSort(parts[0], state); state.sort = parseSort(parts[0], state);
parts.shift(); parts.shift();
Ox.Break()(); Ox.Break();
} }
} }
); );

View file

@ -394,7 +394,7 @@ Ox.Filter = function(options, self) {
Ox.forEach(self.options.query.conditions, function(condition) { Ox.forEach(self.options.query.conditions, function(condition) {
if (condition.conditions) { if (condition.conditions) {
hasGroups = true; hasGroups = true;
Ox.Break()(); Ox.Break();
} }
}); });
hasGroups && renderConditions(); hasGroups && renderConditions();
@ -426,7 +426,7 @@ Ox.Filter = function(options, self) {
&& condition.value === '' && condition.value === ''
// FIXME: this used to be `return isUseless` - but was it intended // FIXME: this used to be `return isUseless` - but was it intended
// to be the other way around, i.e. `isUseless && Ox.Break()`? // to be the other way around, i.e. `isUseless && Ox.Break()`?
!isUseless && Ox.Break()(); !isUseless && Ox.Break();
}); });
Ox.Log('Form', 'isUseless', isUseless); Ox.Log('Form', 'isUseless', isUseless);
return isUseless; return isUseless;

View file

@ -65,7 +65,7 @@ Ox.FormPanel = function(options, self) {
Ox.forEach(self.options.form, function(section, i) { Ox.forEach(self.options.form, function(section, i) {
if (section.title == data.ids[0]) { if (section.title == data.ids[0]) {
self.section = i; self.section = i;
Ox.Break()(); Ox.Break();
} }
}); });
self.$sections[self.section].show(); self.$sections[self.section].show();
@ -147,7 +147,7 @@ Ox.FormPanel = function(options, self) {
Ox.forEach(self.options.form, function(section, i) { Ox.forEach(self.options.form, function(section, i) {
if (section.title == title) { if (section.title == title) {
index = i; index = i;
Ox.Break()(); Ox.Break();
} }
}); });
return index; return index;

View file

@ -88,7 +88,7 @@ Ox.InputGroup = function(options, self) {
Ox.forEach(self.options.inputs, function($input) { Ox.forEach(self.options.inputs, function($input) {
if ($input.focusInput) { if ($input.focusInput) {
$input.focusInput(true); $input.focusInput(true);
Ox.Break()(); Ox.Break();
} }
}); });
} }
@ -149,7 +149,7 @@ Ox.InputGroup = function(options, self) {
//Ox.Log('Form', v, v.options('id'), id) //Ox.Log('Form', v, v.options('id'), id)
if (v.options('id') == self.options.id + Ox.toTitleCase(id)) { if (v.options('id') == self.options.id + Ox.toTitleCase(id)) {
input = v; input = v;
Ox.Break()(); Ox.Break();
} }
}); });
return input; return input;

View file

@ -26,7 +26,7 @@ Ox.OptionGroup = function(items, min, max, property) {
), function(v) { ), function(v) {
if (items[v][property]) { if (items[v][property]) {
last = v; last = v;
Ox.Break()(); Ox.Break();
} }
}); });
return last; return last;

View file

@ -607,7 +607,7 @@ Ox.List = function(options, self) {
Ox.forEach(self.$items, function($item, i) { Ox.forEach(self.$items, function($item, i) {
if ($item.options('data')[self.options.unique] == id) { if ($item.options('data')[self.options.unique] == id) {
pos = i; pos = i;
Ox.Break()(); Ox.Break();
} }
}); });
return pos; return pos;
@ -695,7 +695,7 @@ Ox.List = function(options, self) {
ids.push(self.$items[pos].options('data')[self.options.unique]); ids.push(self.$items[pos].options('data')[self.options.unique]);
} else { } else {
notFound = true; notFound = true;
Ox.Break()(); Ox.Break();
} }
}); });
if (notFound) { if (notFound) {
@ -1153,7 +1153,7 @@ Ox.List = function(options, self) {
if (Ox.toLatin(v.title).toUpperCase().indexOf(str) == 0) { if (Ox.toLatin(v.title).toUpperCase().indexOf(str) == 0) {
select(i); select(i);
scrollToPosition(i); scrollToPosition(i);
Ox.Break()(); Ox.Break();
} }
}); });
} }
@ -1340,7 +1340,7 @@ Ox.List = function(options, self) {
if (oldIds.indexOf(item.id) > -1) { if (oldIds.indexOf(item.id) > -1) {
newIds.push(item.id); newIds.push(item.id);
} }
newIds.length == oldIds.length && Ox.Break()(); newIds.length == oldIds.length && Ox.Break();
}); });
setSelected(newIds); setSelected(newIds);
}); });

View file

@ -259,7 +259,7 @@ Ox.TextList = function(options, self) {
index++; index++;
} else if (v.id == id) { } else if (v.id == id) {
column = v; column = v;
Ox.Break()(); Ox.Break();
} }
}); });
column.visible = true; column.visible = true;
@ -283,7 +283,7 @@ Ox.TextList = function(options, self) {
if (!self.options.columns[index].visible) { if (!self.options.columns[index].visible) {
addColumn(id); addColumn(id);
add = true; add = true;
Ox.Break()(); Ox.Break();
} }
ids.push(id); ids.push(id);
}); });
@ -291,7 +291,7 @@ Ox.TextList = function(options, self) {
Ox.forEach(self.visibleColumns, function(column) { Ox.forEach(self.visibleColumns, function(column) {
if (ids.indexOf(column.id) == -1) { if (ids.indexOf(column.id) == -1) {
removeColumn(column.id); removeColumn(column.id);
Ox.Break()(); Ox.Break();
} }
}); });
} }
@ -484,7 +484,7 @@ Ox.TextList = function(options, self) {
var x = self.drag.listOffset + offset + self.columnWidths[i] / 2; var x = self.drag.listOffset + offset + self.columnWidths[i] / 2;
if (i < self.drag.startPos && e.clientX < x) { if (i < self.drag.startPos && e.clientX < x) {
self.drag.stopPos = i; self.drag.stopPos = i;
Ox.Break()(); Ox.Break();
} else if (i > self.drag.startPos && e.clientX > x) { } else if (i > self.drag.startPos && e.clientX > x) {
self.drag.stopPos = i; self.drag.stopPos = i;
} }
@ -574,7 +574,7 @@ Ox.TextList = function(options, self) {
if (Ox.startsWith(value, query)) { if (Ox.startsWith(value, query)) {
that.$body.options({selected: [item[self.unique]]}); that.$body.options({selected: [item[self.unique]]});
Ox.Log('List', 'QUERY', query, 'VALUE', value) Ox.Log('List', 'QUERY', query, 'VALUE', value)
Ox.Break()(); Ox.Break();
} }
}); });
} }

View file

@ -121,12 +121,12 @@ Ox.TreeList = function(options, self) {
ret = Ox.extend(item, { ret = Ox.extend(item, {
level: level level: level
}); });
Ox.Break()(); Ox.Break();
} }
if (item.items) { if (item.items) {
ret = getItemById(id, item.items, level + 1); ret = getItemById(id, item.items, level + 1);
if (ret) { if (ret) {
Ox.Break()(); Ox.Break();
} }
} }
}); });
@ -143,7 +143,7 @@ Ox.TreeList = function(options, self) {
ret = getParent(id, item.items); ret = getParent(id, item.items);
} }
if (ret) { if (ret) {
Ox.Break()(); Ox.Break();
} }
} }
}); });

View file

@ -111,7 +111,7 @@ Ox.ListMap = function(options, self) {
if (data.area >= area) { if (data.area >= area) {
iconSize = size; iconSize = size;
} else { } else {
Ox.Break()(); Ox.Break();
} }
}); });
return data.type return data.type

View file

@ -541,7 +541,7 @@ Ox.Map = function(options, self) {
if (place.bounds.equals(p.bounds)) { if (place.bounds.equals(p.bounds)) {
place = p; place = p;
exists = true; exists = true;
Ox.Break()(); Ox.Break();
} }
}); });
if (!exists) { if (!exists) {
@ -735,7 +735,7 @@ Ox.Map = function(options, self) {
canContain(bounds, result.geometry.bounds || result.geometry.viewport) canContain(bounds, result.geometry.bounds || result.geometry.viewport)
) { ) {
callback(new Ox.MapPlace(parseGeodata(results[i]))); callback(new Ox.MapPlace(parseGeodata(results[i])));
Ox.Break()(); Ox.Break();
} }
}); });
} else { } else {
@ -784,7 +784,7 @@ Ox.Map = function(options, self) {
Ox.forEach(self.options.places, function(place, i) { Ox.forEach(self.options.places, function(place, i) {
if (place.name == name) { if (place.name == name) {
position = i; position = i;
Ox.Break()(); Ox.Break();
} }
}); });
return position; return position;
@ -800,7 +800,7 @@ Ox.Map = function(options, self) {
Ox.forEach(self.places, function(place) { Ox.forEach(self.places, function(place) {
if (place.selected) { if (place.selected) {
id = place.id; id = place.id;
Ox.Break()(); Ox.Break();
} }
}); });
} }
@ -1035,7 +1035,7 @@ Ox.Map = function(options, self) {
Ox.forEach(components, function(component) { Ox.forEach(components, function(component) {
if (component.types.indexOf('country') > -1) { if (component.types.indexOf('country') > -1) {
countryCode = component.short_name; countryCode = component.short_name;
Ox.Break()(); Ox.Break();
} }
}); });
return countryCode; return countryCode;
@ -1074,7 +1074,7 @@ Ox.Map = function(options, self) {
var ret; var ret;
Ox.forEach(types, function(v) { Ox.forEach(types, function(v) {
ret = Ox.startsWith(v, type); ret = Ox.startsWith(v, type);
ret && Ox.Break()(); ret && Ox.Break();
}); });
return ret; return ret;
} }
@ -1082,10 +1082,10 @@ Ox.Map = function(options, self) {
Ox.forEach(values, function(value) { Ox.forEach(values, function(value) {
if (find(value)) { if (find(value)) {
type = key; type = key;
Ox.Break()(); Ox.Break();
} }
}); });
type != 'feature' && Ox.Break()(); type != 'feature' && Ox.Break();
}); });
return type; return type;
} }
@ -1241,7 +1241,7 @@ Ox.Map = function(options, self) {
.css({ .css({
width: (scaleWidth - 16) + 'px' width: (scaleWidth - 16) + 'px'
}) })
Ox.Break()(); Ox.Break();
} }
}); });
} }

View file

@ -218,7 +218,7 @@ Ox.MapMarker = function(options) {
if (that.place.area >= area) { if (that.place.area >= area) {
that.size = size; that.size = size;
} else { } else {
Ox.Break()(); Ox.Break();
} }
}); });
} else if (Ox.isNumber(size)) { } else if (Ox.isNumber(size)) {

View file

@ -175,7 +175,7 @@ Ox.MainMenu = function(options, self) {
if (ids.length == 1) { if (ids.length == 1) {
Ox.forEach(that.menus, function(menu) { Ox.forEach(that.menus, function(menu) {
item = menu.getItem(id); item = menu.getItem(id);
item && Ox.Break()(); item && Ox.Break();
}); });
} else { } else {
item = that.getMenu(ids.shift()).getItem(ids.join('_')); item = that.getMenu(ids.shift()).getItem(ids.join('_'));
@ -194,7 +194,7 @@ Ox.MainMenu = function(options, self) {
Ox.forEach(that.menus, function(v) { Ox.forEach(that.menus, function(v) {
if (v.options('id') == id) { if (v.options('id') == id) {
menu = v; menu = v;
Ox.Break()(); Ox.Break();
} }
}); });
} else { } else {

View file

@ -189,7 +189,7 @@ Ox.Menu = function(options, self) {
Ox.forEach(that.items, function(item, i) { Ox.forEach(that.items, function(item, i) {
if (item.options('id') == id) { if (item.options('id') == id) {
position = i; position = i;
Ox.Break()(); Ox.Break();
} }
}); });
return position; return position;
@ -205,7 +205,7 @@ Ox.Menu = function(options, self) {
Ox.forEach(that.items, function(item, i) { Ox.forEach(that.items, function(item, i) {
if (i < self.options.selected && !item.options('disabled')) { if (i < self.options.selected && !item.options('disabled')) {
ret = false; ret = false;
Ox.Break()(); Ox.Break();
} }
}); });
return ret; return ret;
@ -216,7 +216,7 @@ Ox.Menu = function(options, self) {
Ox.forEach(that.items, function(item, i) { Ox.forEach(that.items, function(item, i) {
if (i > self.options.selected && !item.options('disabled')) { if (i > self.options.selected && !item.options('disabled')) {
ret = false; ret = false;
Ox.Break()(); Ox.Break();
} }
}); });
return ret; return ret;
@ -459,7 +459,7 @@ Ox.Menu = function(options, self) {
Ox.forEach(that.submenus, function(submenu, id) { Ox.forEach(that.submenus, function(submenu, id) {
if (!submenu.is(':hidden')) { if (!submenu.is(':hidden')) {
submenu.hideMenu(); submenu.hideMenu();
Ox.Break()(); Ox.Break();
} }
}); });
item.options('items').length && that.submenus[item.options('id')].showMenu(); item.options('items').length && that.submenus[item.options('id')].showMenu();
@ -650,13 +650,13 @@ Ox.Menu = function(options, self) {
Ox.forEach(that.items, function(v) { Ox.forEach(that.items, function(v) {
if (v.options('id') == id) { if (v.options('id') == id) {
item = v; item = v;
Ox.Break()(); Ox.Break();
} }
}); });
if (!item) { if (!item) {
Ox.forEach(that.submenus, function(submenu) { Ox.forEach(that.submenus, function(submenu) {
item = submenu.getItem(id); item = submenu.getItem(id);
item && Ox.Break()(); item && Ox.Break();
}); });
} }
} else { } else {
@ -690,7 +690,7 @@ Ox.Menu = function(options, self) {
Ox.forEach(that.items, function(item) { Ox.forEach(that.items, function(item) {
if (!item.options('disabled')) { if (!item.options('disabled')) {
ret = true; ret = true;
Ox.Break()(); Ox.Break();
} }
}); });
return ret; return ret;
@ -707,7 +707,7 @@ Ox.Menu = function(options, self) {
Ox.forEach(that.submenus, function(submenu) { Ox.forEach(that.submenus, function(submenu) {
if (submenu.is(':visible')) { if (submenu.is(':visible')) {
submenu.hideMenu(); submenu.hideMenu();
Ox.Break()(); Ox.Break();
} }
}); });
selectItem(-1); selectItem(-1);

View file

@ -103,7 +103,7 @@ Ox.SplitPanel = function(options, self) {
Ox.forEach(self.options.elements, function(element, i) { Ox.forEach(self.options.elements, function(element, i) {
if (element.element.options('id') == id) { if (element.element.options('id') == id) {
position = i; position = i;
Ox.Break()(); Ox.Break();
} }
}); });
return position; return position;

View file

@ -186,10 +186,10 @@ Ox.AnnotationPanel = function(options, self) {
if (item.id == annotationId) { if (item.id == annotationId) {
annotation = item; annotation = item;
found = true; found = true;
Ox.Break()(); Ox.Break();
} }
}); });
found && Ox.Break()(); found && Ox.Break();
}); });
return annotation; return annotation;
} }
@ -201,10 +201,10 @@ Ox.AnnotationPanel = function(options, self) {
if (item.id == annotationId) { if (item.id == annotationId) {
folder = self.$folder[i]; folder = self.$folder[i];
found = true; found = true;
Ox.Break()(); Ox.Break();
} }
}); });
found && Ox.Break()(); found && Ox.Break();
}); });
return folder; return folder;
} }
@ -426,7 +426,7 @@ Ox.AnnotationPanel = function(options, self) {
self.deselecting = true; self.deselecting = true;
$folder.options({selected: ''}); $folder.options({selected: ''});
self.deselecting = false; self.deselecting = false;
Ox.Break()(); Ox.Break();
} }
}); });
scrollToSelected(self.options.layers[index].type); scrollToSelected(self.options.layers[index].type);

View file

@ -157,7 +157,7 @@ Ox.BlockVideoTimeline = function(options, self) {
Ox.forEach(self.options.subtitles, function(v) { Ox.forEach(self.options.subtitles, function(v) {
if (v['in'] <= position && v.out > position) { if (v['in'] <= position && v.out > position) {
subtitle = v; subtitle = v;
Ox.Break()(); Ox.Break();
} }
}); });
return subtitle; return subtitle;

View file

@ -118,7 +118,7 @@ Ox.SmallVideoTimeline = function(options, self) {
Ox.forEach(self.options.subtitles, function(v) { Ox.forEach(self.options.subtitles, function(v) {
if (v['in'] <= position && v.out > position) { if (v['in'] <= position && v.out > position) {
subtitle = v; subtitle = v;
Ox.Break()(); Ox.Break();
} }
}); });
return subtitle; return subtitle;

View file

@ -866,10 +866,10 @@ Ox.VideoEditor = function(options, self) {
if (item.id == annotationId) { if (item.id == annotationId) {
value = item.value; value = item.value;
found = true; found = true;
Ox.Break()(); Ox.Break();
} }
}); });
found && Ox.Break()(); found && Ox.Break();
}); });
return value; return value;
} }
@ -920,7 +920,7 @@ Ox.VideoEditor = function(options, self) {
) { ) {
position = v; position = v;
found = true; found = true;
Ox.Break()(); Ox.Break();
} }
}); });
direction == -1 && positions.reverse(); direction == -1 && positions.reverse();
@ -1107,7 +1107,7 @@ Ox.VideoEditor = function(options, self) {
'in': i ? self.options.cuts[i - 1] : 0, 'in': i ? self.options.cuts[i - 1] : 0,
out: cut - 1 / self.options.fps out: cut - 1 / self.options.fps
}; };
Ox.Break()(); Ox.Break();
} }
}); });
self.options.selected = ''; self.options.selected = '';

View file

@ -230,7 +230,7 @@ Ox.VideoEditorPlayer = function(options, self) {
Ox.forEach(self.options.subtitles, function(v) { Ox.forEach(self.options.subtitles, function(v) {
if (v['in'] <= self.options.position && v['out'] > self.options.position) { if (v['in'] <= self.options.position && v['out'] > self.options.position) {
subtitle = v.value; subtitle = v.value;
Ox.Break()(); Ox.Break();
} }
}); });
return subtitle; return subtitle;

View file

@ -271,7 +271,7 @@ Ox.VideoElement = function(options, self) {
if (item.offsets[i] <= time) { if (item.offsets[i] <= time) {
currentPart = i; currentPart = i;
currentTime = time - item.offsets[i]; currentTime = time - item.offsets[i];
Ox.Break()(); Ox.Break();
} }
}); });
Ox.Log('Video', 'sCT', time, currentPart, currentTime); Ox.Log('Video', 'sCT', time, currentPart, currentTime);

View file

@ -1227,7 +1227,7 @@ Ox.VideoPlayer = function(options, self) {
&& v.out > self.options.position && v.out > self.options.position
) { ) {
censored = true; censored = true;
Ox.Break()(); Ox.Break();
} }
}); });
return censored; return censored;
@ -1405,7 +1405,7 @@ Ox.VideoPlayer = function(options, self) {
&& v.out >= self.options.position && v.out >= self.options.position
) { ) {
subtitle = v.text; subtitle = v.text;
Ox.Break()(); Ox.Break();
} }
}); });
return subtitle; return subtitle;
@ -1454,7 +1454,7 @@ Ox.VideoPlayer = function(options, self) {
var left = 0; var left = 0;
Ox.forEach(self.options.controlsBottom, function(control) { Ox.forEach(self.options.controlsBottom, function(control) {
if (control == 'timeline') { if (control == 'timeline') {
Ox.Break()(); Ox.Break();
} }
left += control == 'position' ? self.positionWidth : 16 left += control == 'position' ? self.positionWidth : 16
}); });
@ -1538,7 +1538,7 @@ Ox.VideoPlayer = function(options, self) {
) { ) {
result = v result = v
found = true; found = true;
Ox.Break()(); Ox.Break();
} }
}); });
direction == -1 && self.results.reverse(); direction == -1 && self.results.reverse();

View file

@ -485,7 +485,7 @@ Ox.VideoTimelinePlayer = function(options, self) {
Ox.forEach(self.options.subtitles, function(v) { Ox.forEach(self.options.subtitles, function(v) {
if (v['in'] <= position && v.out > position) { if (v['in'] <= position && v.out > position) {
subtitle = v; subtitle = v;
Ox.Break()(); Ox.Break();
} }
}); });
return subtitle; return subtitle;

View file

@ -251,7 +251,7 @@ Ox.Dialog = function(options, self) {
Ox.forEach(self.options.buttons, function(button) { Ox.forEach(self.options.buttons, function(button) {
if (button.options && button.options('id') == id) { if (button.options && button.options('id') == id) {
ret = button; ret = button;
Ox.Break()(); Ox.Break();
} }
}); });
return ret; return ret;