From 6e63ebe8dd4f6e5cc12ee08ecec6c159775b812e Mon Sep 17 00:00:00 2001 From: Yoshihiro Yamazaki Date: Mon, 31 Dec 2012 00:24:59 +0900 Subject: [PATCH] =?utf8?q?new=20Function=20=E4=B8=AD=E3=81=8B=E3=82=89?= =?utf8?q?=E5=91=BC=E3=81=B0=E3=82=8C=E3=82=8B=E9=96=A2=E6=95=B0=E3=82=84?= =?utf8?q?=E3=83=97=E3=83=AD=E3=83=91=E3=83=86=E3=82=A3=E3=81=AF=E5=9B=BA?= =?utf8?q?=E5=AE=9A=E6=96=87=E5=AD=97=E5=88=97=E3=81=A7=E7=B5=90=E3=81=B3?= =?utf8?q?=E4=BB=98=E3=81=91=E3=81=A6=E3=81=8A=E3=81=8F(ADVANCED=5FOPTIMIZ?= =?utf8?q?ATION=20=E5=AF=BE=E5=BF=9C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/canvas.js | 2 +- src/loader.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/canvas.js b/src/canvas.js index 55bbf79..dd9741c 100644 --- a/src/canvas.js +++ b/src/canvas.js @@ -7,7 +7,7 @@ goog.scope(function() { */ FlappCanvas = function(canvas) { this.canvas = canvas; - this.ctx = canvas.getContext('2d'); + this['ctx'] = this.ctx = canvas.getContext('2d'); // for closure compilre }; FlappCanvas.prototype = { diff --git a/src/loader.js b/src/loader.js index 1c85ef1..f2009b1 100644 --- a/src/loader.js +++ b/src/loader.js @@ -86,7 +86,7 @@ FlappLoader.prototype = { var jpeg = FlappBitmap.toJpeg(tag.jpegData, jpegTables); var image = new Image(); image.src = "data:image/jpeg;base64," + goog.global.btoa(jpeg); - tag.image = image; + tag['image'] = tag.image = image; // for closure compilre dict.set(tag.id, tag); break; case 8: // JPEGTables -- 2.11.0