do not add null-valued parameters

git-svn-id: http://svn.openlayers.org/trunk/openlayers@959 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-17 15:37:48 +00:00
parent fa090a0826
commit f9034ac9a2

View File

@@ -932,11 +932,10 @@ OpenLayers.Util.getParameterString = function(params) {
for (var key in params) {
var value = params[key];
//skip functions
if (typeof value == 'function') continue;
if ((value != null) && (typeof value != 'function')) {
paramsArray.push(key + "=" + value);
}
}
return paramsArray.join("&");
};