1
0
Fork 0
forked from 0x2620/oxjs

remove Ox.Break

This commit is contained in:
rolux 2012-07-05 10:58:08 +02:00
commit bda90f6b6b
44 changed files with 152 additions and 165 deletions

View file

@ -154,7 +154,7 @@ Ox.load.Geo = function(options, callback) {
Ox.forEach(Ox.COUNTRIES, function(c) {
if (c.code == code) {
country = c;
Ox.Break();
return false; // break
}
});
return country;
@ -193,7 +193,7 @@ Ox.load.Geo = function(options, callback) {
Ox.forEach(Ox.COUNTRIES, function(c) {
if (name == c.name || name == c.googleName || name == c.imdbName) {
country = c;
Ox.Break();
return false; // break
}
});
return country;
@ -241,7 +241,7 @@ Ox.load.Geo = function(options, callback) {
return language.toLowerCase();
}).indexOf(language) > -1) {
country = c;
return false;
return false; // break
}
});
code = country ? country.flag || country.code : 'NTHH';