forked from 0x2620/oxjs
use Ox.break
This commit is contained in:
parent
3d4a79b6a2
commit
04784630d3
42 changed files with 117 additions and 118 deletions
|
|
@ -154,7 +154,7 @@ Ox.load.Geo = function(options, callback) {
|
|||
Ox.forEach(Ox.COUNTRIES, function(c) {
|
||||
if (c.code == code) {
|
||||
country = c;
|
||||
return false;
|
||||
Ox.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;
|
||||
return false;
|
||||
Ox.break();
|
||||
}
|
||||
});
|
||||
return country;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue