From 8325d37f9d3fd003813c7d94e6add89e97bf54fd Mon Sep 17 00:00:00 2001 From: Julian Viereck Date: Tue, 21 Feb 2012 14:30:40 +0100 Subject: [PATCH] No need to store ScratchCanvas on CanvasGraphics --- src/canvas.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/canvas.js b/src/canvas.js index b87e1aeeb..0d8a83ad6 100644 --- a/src/canvas.js +++ b/src/canvas.js @@ -199,7 +199,6 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { this.pendingClip = null; this.res = null; this.xobjs = null; - this.ScratchCanvas = ScratchCanvas; this.objs = objs; this.textLayer = textLayer; if (canvasCtx) { @@ -1116,7 +1115,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { // scale the image to the unit square ctx.scale(1 / w, -1 / h); - var tmpCanvas = new this.ScratchCanvas(w, h); + var tmpCanvas = new ScratchCanvas(w, h); var tmpCtx = tmpCanvas.getContext('2d'); var fillColor = this.current.fillColor; @@ -1147,7 +1146,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { // scale the image to the unit square ctx.scale(1 / w, -1 / h); - var tmpCanvas = new this.ScratchCanvas(w, h); + var tmpCanvas = new ScratchCanvas(w, h); var tmpCtx = tmpCanvas.getContext('2d'); this.putBinaryImageData(tmpCtx, imgData, w, h);