diff --git a/source/Ox.Geo/Ox.Geo.js b/source/Ox.Geo/Ox.Geo.js index b6a153f5..04035c50 100644 --- a/source/Ox.Geo/Ox.Geo.js +++ b/source/Ox.Geo/Ox.Geo.js @@ -177,6 +177,7 @@ Ox.load.Geo = function(options, callback) { }; Ox.getFlagByCountryCode = function(code, size) { + size = size || 16; return Ox.PATH + 'Ox.Geo/png/flags/' + size + '/' + code + '.png'; }; @@ -190,6 +191,7 @@ Ox.load.Geo = function(options, callback) { Ox.getFlagByGeoname = function(geoname, size) { var country = Ox.getCountryByGeoname(geoname), code = country ? country.code : 'NTHH'; + size = size || 16; return Ox.PATH + 'Ox.Geo/png/flags/' + size + '/' + code + '.png'; };