it's redundant for applyDefaults() to return anything. thx tschaub
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1255 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -118,7 +118,7 @@ OpenLayers.Layer.prototype = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// catch any randomly tagged-on properties
|
// catch any randomly tagged-on properties
|
||||||
obj = OpenLayers.Util.applyDefaults(obj, this);
|
OpenLayers.Util.applyDefaults(obj, this);
|
||||||
|
|
||||||
// a cloned layer should never have its map property set
|
// a cloned layer should never have its map property set
|
||||||
// because it has not been added to a map yet.
|
// because it has not been added to a map yet.
|
||||||
|
|||||||
@@ -240,8 +240,6 @@ OpenLayers.Util.upperCaseObject = function (object) {
|
|||||||
*
|
*
|
||||||
* @param {Object} to
|
* @param {Object} to
|
||||||
* @param {Object} from
|
* @param {Object} from
|
||||||
*
|
|
||||||
* @type Object
|
|
||||||
*/
|
*/
|
||||||
OpenLayers.Util.applyDefaults = function (to, from) {
|
OpenLayers.Util.applyDefaults = function (to, from) {
|
||||||
for (var key in from) {
|
for (var key in from) {
|
||||||
@@ -249,7 +247,6 @@ OpenLayers.Util.applyDefaults = function (to, from) {
|
|||||||
to[key] = from[key];
|
to[key] = from[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return to;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user