Use ol.object.assign() in object.getPoperties()

This commit is contained in:
Tim Schaub
2016-02-03 06:43:57 -07:00
parent 3a4b504a5d
commit 619e070d80

View File

@@ -199,12 +199,7 @@ ol.Object.prototype.getKeys = function() {
* @api stable
*/
ol.Object.prototype.getProperties = function() {
var properties = {};
var key;
for (key in this.values_) {
properties[key] = this.values_[key];
}
return properties;
return ol.object.assign({}, this.values_);
};