forked from 0x2620/oxjs
update geo module; make Ox.load accept multiple modules
This commit is contained in:
parent
cbd6a1dea8
commit
3c419d3ee7
4 changed files with 108 additions and 83 deletions
|
|
@ -147,7 +147,7 @@ Ox.load.Geo = function(options, callback) {
|
|||
Ox.getCountryByName = function(name) {
|
||||
var country;
|
||||
Ox.forEach(Ox.COUNTRIES, function(c) {
|
||||
if (name == c.name || name == c.googleName) {
|
||||
if (name == c.name || name == c.googleName || name == c.imdbName) {
|
||||
country = c;
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue