diff --git a/Source/Context/Text.js b/Source/Context/Text.js index cdbd27c..85f00cb 100644 --- a/Source/Context/Text.js +++ b/Source/Context/Text.js @@ -58,7 +58,7 @@ LibCanvas.declare( 'LibCanvas.Context.Text', { }, /** @returns {object} */ measureText : function (args) { - return this.ctx2d.measureText.call(this.ctx2d, args) + return this.ctx2d.measureText.apply(this.ctx2d, args) }, /** @returns {Context2D} */ text : function (cfg) { diff --git a/libcanvas-full-compiled.js b/libcanvas-full-compiled.js index e5a3a4d..464e502 100644 --- a/libcanvas-full-compiled.js +++ b/libcanvas-full-compiled.js @@ -3267,7 +3267,7 @@ LibCanvas.declare( 'LibCanvas.Context.Text', { }, /** @returns {object} */ measureText : function (args) { - return this.ctx2d.measureText.call(this.ctx2d, args) + return this.ctx2d.measureText.apply(this.ctx2d, args) }, /** @returns {Context2D} */ text : function (cfg) {