]> git.parisson.com Git - pdf.js.git/commitdiff
Another undeclared variable caught by strict mode
authorVivien Nicolas <21@vingtetun.org>
Sun, 19 Jun 2011 01:08:43 +0000 (03:08 +0200)
committerVivien Nicolas <21@vingtetun.org>
Sun, 19 Jun 2011 01:08:43 +0000 (03:08 +0200)
pdf.js

diff --git a/pdf.js b/pdf.js
index 02159f94b0258be3e095084031fe0c662ffdbaaf..399708b8471205d3eb44bfa04cd470169a803146 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -2384,7 +2384,7 @@ var CanvasGraphics = (function() {
                 error("No support for array of functions");
             else if (!IsPDFFunction(fnObj))
                 error("Invalid function");
-            fn = new PDFFunction(this.xref, fnObj);
+            var fn = new PDFFunction(this.xref, fnObj);
 
             var gradient = this.ctx.createLinearGradient(x0, y0, x1, y1);
             var step = (t1 - t0) / 10;