Use ol.object.assign() in object.getPoperties()
This commit is contained in:
@@ -199,12 +199,7 @@ ol.Object.prototype.getKeys = function() {
|
|||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.Object.prototype.getProperties = function() {
|
ol.Object.prototype.getProperties = function() {
|
||||||
var properties = {};
|
return ol.object.assign({}, this.values_);
|
||||||
var key;
|
|
||||||
for (key in this.values_) {
|
|
||||||
properties[key] = this.values_[key];
|
|
||||||
}
|
|
||||||
return properties;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user