From 0ee6acef28cf79a66e28ced87fb9505fa98fe85c Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 23 Nov 2011 16:25:07 +0100 Subject: [PATCH] fix a bug in Ox.Geo --- source/Ox.Geo/Ox.Geo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox.Geo/Ox.Geo.js b/source/Ox.Geo/Ox.Geo.js index 290f1d36..850e1aa4 100644 --- a/source/Ox.Geo/Ox.Geo.js +++ b/source/Ox.Geo/Ox.Geo.js @@ -164,9 +164,9 @@ Ox.load.Geo = function(options, callback) { language = language .replace(' languages', '') .replace(' Sign Language', ''); - var country = '', code; + var country, code; Ox.COUNTRIES.forEach(function(c) { - if (c.languages.indexOf(language) > -1) { + if (c.languages && c.languages.indexOf(language) > -1) { country = c; return false; }