]> git.parisson.com Git - pdf.js.git/commitdiff
Fix jslint warnings.
authorKalervo Kujala <kkujala@com>
Thu, 3 Nov 2011 21:26:58 +0000 (23:26 +0200)
committerKalervo Kujala <kkujala@com>
Thu, 3 Nov 2011 21:26:58 +0000 (23:26 +0200)
src/canvas.js
src/core.js

index 474cc250fa91bc8bbba0aa6b37274ad2d1017137..686430cc1e747def2304f861dcfd1713577bc83f 100644 (file)
@@ -24,9 +24,9 @@ var CanvasExtraState = (function canvasExtraState() {
     this.wordSpacing = 0;
     this.textHScale = 1;
     // Color spaces
-    this.fillColorSpace = new DeviceGrayCS;
+    this.fillColorSpace = new DeviceGrayCS();
     this.fillColorSpaceObj = null;
-    this.strokeColorSpace = new DeviceGrayCS;
+    this.strokeColorSpace = new DeviceGrayCS();
     this.strokeColorSpaceObj = null;
     this.fillColorObj = null;
     this.strokeColorObj = null;
index 2bc4c50aa5c82a728846091e5c1f434bdee2116a..0e6f13e97a690d9132754200bc3b36095a4b8d35 100644 (file)
@@ -199,8 +199,8 @@ var Page = (function pagePage() {
       var pe = this.pe = new PartialEvaluator(
                                 xref, handler, 'p' + this.pageNumber + '_');
       var IRQueue = {};
-      return this.IRQueue = pe.getIRQueue(
-                                content, resources, IRQueue, dependency);
+      return (this.IRQueue = pe.getIRQueue(content, resources, IRQueue,
+                                           dependency));
     },
 
     ensureFonts: function pageEnsureFonts(fonts, callback) {
@@ -598,7 +598,7 @@ var PDFDoc = (function pdfDoc() {
       // to the CanvasGraphics and so on.
       page.objs = this.objs;
       page.pdf = this;
-      return this.pageCache[n] = page;
+      return (this.pageCache[n] = page);
     },
 
     destroy: function pdfDocDestroy() {