1
0
Fork 0
forked from 0x2620/oxjs

update geo module; make Ox.load accept multiple modules

This commit is contained in:
rlx 2011-09-09 23:05:04 +00:00
commit 3c419d3ee7
4 changed files with 108 additions and 83 deletions

View file

@ -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;
}