diff --git a/src/core/text/TextStyle.js b/src/core/text/TextStyle.js index 493bef9..5a5ccf7 100644 --- a/src/core/text/TextStyle.js +++ b/src/core/text/TextStyle.js @@ -83,10 +83,7 @@ */ TextStyle.prototype.reset = function () { - for (var property in this._defaults) - { - this[property] = this._defaults[property]; - } + Object.assign(this, this._defaults); }; /**