From 42715989440b2997bd3ae46474024915aa03e07e Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 4 Apr 2012 00:32:39 +0200 Subject: [PATCH] don't require size in Ox.GetFlagBy...() --- source/Ox.Geo/Ox.Geo.js | 2 ++ 1 file changed, 2 insertions(+) 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'; };