Ox.Break() -> return false

This commit is contained in:
rolux 2012-07-04 13:40:37 +02:00
commit c52a8e0953
4 changed files with 8 additions and 8 deletions

View file

@ -637,7 +637,7 @@ pandora.getItemFind = function(find) {
&& ['=', '=='].indexOf(condition.operator) > -1
) {
itemFind = condition.value;
Ox.Break();
return false;
}
})
return itemFind;
@ -920,7 +920,7 @@ pandora.getVideoPartsAndPoints = function(durations, points) {
Ox.loop(parts - 1, -1, -1, function(i) {
if (offsets[i] <= point) {
ret.parts[i] = i;
Ox.Break();
return false;
}
});
});
@ -1338,7 +1338,7 @@ pandora.unloadWindow = function() {
Ox.forEach(pandora.user.ui.filters, function(key) {
if (everyCondition(find.conditions, key, '==')) {
state.key = '*';
Ox.Break();
return false;
}
});
}