]> git.parisson.com Git - pdf.js.git/commitdiff
Fix gjslint warnings.
authorKalervo Kujala <kkujala@>
Mon, 12 Sep 2011 17:42:55 +0000 (20:42 +0300)
committerKalervo Kujala <kkujala@>
Mon, 12 Sep 2011 17:42:55 +0000 (20:42 +0300)
fonts.js
pdf.js

index d0d42a941539fcdf29ffb0b2f122bff82efbbd43..9ba1d876e2ce3390f8ff82ad122370937e90f966 100755 (executable)
--- a/fonts.js
+++ b/fonts.js
@@ -434,7 +434,7 @@ var Font = (function Font() {
 
       // Use 'name' instead of 'fontName' here because the original
       // name ArialBlack for example will be replaced by Helvetica.
-      this.black = (name.search(/Black/g) != -1)
+      this.black = (name.search(/Black/g) != -1);
 
       this.loadedName = fontName.split('-')[0];
       this.loading = false;
@@ -986,7 +986,7 @@ var Font = (function Font() {
         font.pos = (font.start ? font.start : 0) + header.offset;
         font.pos += header.length - 2;
         var numOfMetrics = int16(font.getBytes(2));
-      
+
         var numOfSidebearings = numGlyphs - numOfMetrics;
         var numMissing = numOfSidebearings -
           ((hmtx.length - numOfMetrics * 4) >> 1);
@@ -1807,7 +1807,8 @@ var Type1Parser = function() {
                 if ('undefined' == typeof(properties.differences[index])) {
                   var mapping = properties.encoding[index] || {};
                   mapping.unicode = GlyphsUnicode[glyph] || index;
-                  properties.glyphs[glyph] = properties.encoding[index] = mapping;
+                  properties.glyphs[glyph] = properties.encoding[index] =
+                                             mapping;
                 }
                 getToken(); // read the in 'put'
               }
diff --git a/pdf.js b/pdf.js
index ccd90951d4e02822218ccb7376bfad99bebdb5ac..939d9e21c2c683686ffbc6e4952459b59d86f057 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -876,8 +876,8 @@ var JpegStream = (function() {
 
   function fixYcckImage(bytes) {
     // Inserting 'EMBED' marker after JPEG signature
-    var embedMarker = new Uint8Array([0xFF, 0xEC, 0, 8, 
-      0x45, 0x4D, 0x42, 0x45, 0x44, 0]);
+    var embedMarker = new Uint8Array([0xFF, 0xEC, 0, 8, 0x45, 0x4D, 0x42, 0x45,
+                                      0x44, 0]);
     var newBytes = new Uint8Array(bytes.length + embedMarker.length);
     newBytes.set(bytes, embedMarker.length);
     // copy JPEG header