[Mapbender-commits] r4611 - trunk/mapbender/lib
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Sep 10 11:54:01 EDT 2009
Author: christoph
Date: 2009-09-10 11:54:00 -0400 (Thu, 10 Sep 2009)
New Revision: 4611
Modified:
trunk/mapbender/lib/basic.js
Log:
stupid bug
Modified: trunk/mapbender/lib/basic.js
===================================================================
--- trunk/mapbender/lib/basic.js 2009-09-10 15:53:10 UTC (rev 4610)
+++ trunk/mapbender/lib/basic.js 2009-09-10 15:54:00 UTC (rev 4611)
@@ -57,7 +57,7 @@
function cloneObject (p, c) {
var c = c || {};
for (var i in p) {
- if (typeof p[i] === 'object') {
+ if (typeof p[i] === 'object' && p[i] !== null) {
c[i] = (p[i].constructor === Array) ? [] : {};
cloneObject(p[i], c[i]);
}
More information about the Mapbender_commits
mailing list