forked from 0x2620/oxjs
remove Ox.Break
This commit is contained in:
parent
4139e171ca
commit
bda90f6b6b
44 changed files with 152 additions and 165 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue