fix a bug in Ox.Geo

This commit is contained in:
rolux 2011-11-23 16:25:07 +01:00
parent 4c2d873c97
commit 0ee6acef28

View file

@ -164,9 +164,9 @@ Ox.load.Geo = function(options, callback) {
language = language language = language
.replace(' languages', '') .replace(' languages', '')
.replace(' Sign Language', ''); .replace(' Sign Language', '');
var country = '', code; var country, code;
Ox.COUNTRIES.forEach(function(c) { Ox.COUNTRIES.forEach(function(c) {
if (c.languages.indexOf(language) > -1) { if (c.languages && c.languages.indexOf(language) > -1) {
country = c; country = c;
return false; return false;
} }