Make OpenLayers.Util.applyDefaults() return the modified object. To be consistent with OpenLayers.Util.Extend() and be able to use anonymous object as the 'to' object. Thanks fredj for the patch and tests. Thanks euzuro and crschmidt for the reviews. (closes #992)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5162 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2007-11-09 20:13:31 +00:00
parent cbdf3522a7
commit adf2381731
2 changed files with 8 additions and 1 deletions
+1
View File
@@ -503,6 +503,7 @@ OpenLayers.Util.applyDefaults = function (to, from) {
to[key] = from[key];
}
}
return to;
};
/**