don't require size in Ox.GetFlagBy...()

This commit is contained in:
rolux 2012-04-04 00:32:39 +02:00
parent 47976fb6fb
commit 4271598944

View file

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