From c0cb29b51bd1223f460224674ec4941fa8b600f2 Mon Sep 17 00:00:00 2001 From: FireVolkhov Date: Tue, 17 Mar 2015 20:48:37 +0500 Subject: [PATCH] =?UTF-8?q?https://github.com/theshock/libcanvas/issues/59?= =?UTF-8?q?=20=D0=A4=D0=B8=D0=BA=D1=81=20measureText=20=D0=BD=D0=B5=20?= =?UTF-8?q?=D0=BA=D0=BE=D1=80=D1=80=D0=B5=D0=BA=D1=82=D0=BD=D0=BE=20=D1=80?= =?UTF-8?q?=D0=B0=D1=81=D1=81=D1=87=D0=B8=D1=82=D1=8B=D0=B2=D0=B0=D0=BB=20?= =?UTF-8?q?=D0=B4=D0=BB=D0=B8=D0=BD=D1=83=20=D1=82=D0=B5=D0=BA=D1=81=D1=82?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/Context/Text.js | 2 +- libcanvas-full-compiled.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {