From 4e990a3e372e2cc689db6bea2b91e17fc6a7b686 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Tue, 21 Oct 2014 15:14:52 +0200 Subject: [PATCH] Replace _this with this in Font.charsWidth and Font.substringWidth --- midp/gfx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/midp/gfx.js b/midp/gfx.js index 93f352f7..4afdcbbb 100644 --- a/midp/gfx.js +++ b/midp/gfx.js @@ -260,11 +260,11 @@ }); Native.create("javax/microedition/lcdui/Font.charsWidth.([CII)I", function(ctx, str, offset, len) { - return withFont(_this, MIDP.Context2D, util.fromJavaChars(str).slice(offset, offset + len)); + return withFont(this, MIDP.Context2D, util.fromJavaChars(str).slice(offset, offset + len)); }); Native.create("javax/microedition/lcdui/Font.substringWidth.(Ljava/lang/String;II)I", function(ctx, str, offset, len) { - return withFont(_this, MIDP.Context2D, util.fromJavaString(str).slice(offset, offset + len)); + return withFont(this, MIDP.Context2D, util.fromJavaString(str).slice(offset, offset + len)); }); var HCENTER = 1;