From c52a8e0953365e6cb20da8477d64dc93dfa94f85 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 4 Jul 2012 13:40:37 +0200 Subject: [PATCH] Ox.Break() -> return false --- static/js/pandora/mainMenu.js | 2 +- static/js/pandora/statisticsDialog.js | 2 +- static/js/pandora/usersDialog.js | 6 +++--- static/js/pandora/utils.js | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/static/js/pandora/mainMenu.js b/static/js/pandora/mainMenu.js index a66d28acd..bbd8a8dee 100644 --- a/static/js/pandora/mainMenu.js +++ b/static/js/pandora/mainMenu.js @@ -572,7 +572,7 @@ pandora.ui.mainMenu = function() { Ox.forEach(elements, function(element, i) { if (element.hasFocus()) { index = i; - Ox.Break(); + return false; } }); elements[Ox.mod((index + direction), elements.length)].gainFocus(); diff --git a/static/js/pandora/statisticsDialog.js b/static/js/pandora/statisticsDialog.js index c0d871fb3..8aa1886b0 100644 --- a/static/js/pandora/statisticsDialog.js +++ b/static/js/pandora/statisticsDialog.js @@ -571,7 +571,7 @@ pandora.ui.statisticsDialog = function() { Ox.forEach(names, function(v) { if (new RegExp('^' + v).test(version)) { name = v; - Ox.Break(); + return false; } }); return name; diff --git a/static/js/pandora/usersDialog.js b/static/js/pandora/usersDialog.js index 4d8f9905f..b01bff0d2 100644 --- a/static/js/pandora/usersDialog.js +++ b/static/js/pandora/usersDialog.js @@ -208,7 +208,7 @@ pandora.ui.usersDialog = function() { Ox.forEach(systems, function(s) { if (new RegExp('^' + s).test(value)) { system = s; - Ox.Break(); + return false; } }); return system ? Ox.Element({ @@ -243,7 +243,7 @@ pandora.ui.usersDialog = function() { Ox.forEach(browsers, function(b) { if (new RegExp('^' + b).test(value)) { browser = b; - Ox.Break(); + return false; } }); return browser ? Ox.Element({ @@ -584,7 +584,7 @@ pandora.ui.usersDialog = function() { ).options('items'), function($item) { if ($item.options('id') == id) { ret = $item; - Ox.Break(); + return false; } }); return ret; diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index dd263fac7..d7164548a 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -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; } }); }