]> git.parisson.com Git - pdf.js.git/commitdiff
Fix js strict warning in worker.js.
authorKalervo Kujala <kkujala@com>
Thu, 27 Oct 2011 18:51:10 +0000 (21:51 +0300)
committerKalervo Kujala <kkujala@com>
Thu, 27 Oct 2011 18:51:10 +0000 (21:51 +0300)
Also fix a few minor nits.

18 files changed:
src/canvas.js
src/cidmaps.js
src/colorspace.js
src/core.js
src/crypto.js
src/evaluator.js
src/fonts.js
src/function.js
src/image.js
src/metrics.js
src/obj.js
src/parser.js
src/pattern.js
src/pdf.js
src/stream.js
src/util.js
src/worker.js
src/worker_loader.js

index 70dd65e3df25efd9d7999d2e0b5e6b4eb6b41c5b..b7045dc39e24400bec2264de3fafa946f402e726 100644 (file)
@@ -1,8 +1,11 @@
-// <canvas> contexts store most of the state we need natively.
-// However, PDF needs a bit more state, which we store here.
+/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
 
 'use strict';
 
+// <canvas> contexts store most of the state we need natively.
+// However, PDF needs a bit more state, which we store here.
+
 var CanvasExtraState = (function canvasExtraState() {
   function constructor(old) {
     // Are soft masks and alpha values shapes or opacities?
@@ -838,3 +841,4 @@ var CanvasGraphics = (function canvasGraphics() {
 
   return constructor;
 })();
+
index 7de3d14f6d46e346271292692bacf88f699d443b..226843b713510f0eb3216c6648bbd7d847b403bd 100644 (file)
@@ -6930,3 +6930,4 @@ var CIDToUnicodeMaps = {
     {f: 39, c: 19576}, {f: 111, c: 19620}, {f: 148, c: 19738},
     {f: 7, c: 19887}]
 };
+
index 3ce383a0954bb19ff6b4fdaace2981ae737ecd55..1c5c291f421c5b60748d4932ed642185c05c54a4 100644 (file)
@@ -397,5 +397,7 @@ var DeviceCmykCS = (function deviceCmykCS() {
       return rgbBuf;
     }
   };
+
   return constructor;
 })();
+
index 4b411cff5c93fd566fe877df30ca249a5ee97468..e7241acfa21b5b8e75087fdddbca68dadad24f71 100644 (file)
@@ -608,4 +608,6 @@ var PDFDoc = (function() {
 
   return constructor;
 })();
+
 globalScope.PDFJS.PDFDoc = PDFDoc;
+
index 5699ea1df9eaca6b7b39196a6b93ddce305f3af3..2c86038f0d123028ae37fe711a2c5528d72399f7 100644 (file)
@@ -595,3 +595,4 @@ var CipherTransformFactory = (function cipherTransformFactory() {
 
   return constructor;
 })();
+
index 5007394b4ca363ccc547636ad31c3921790f10eb..48e12c83d186ebe3717be7745cb8acd9884519e7 100644 (file)
@@ -918,3 +918,4 @@ var EvalState = (function evalState() {
   };
   return constructor;
 })();
+
index f123b5f4c599df7b36b3a2c4559e6d9ee8d03953..b027b766adcaaa8ce4069aa74b94aa12d00d82f8 100644 (file)
@@ -3272,3 +3272,4 @@ var Type2CFF = (function type2CFF() {
 
   return constructor;
 })();
+
index 0d4976ab02de20af0ba97ed1e3774912e17bb193..e2b191274cb2dd7174a8798eb3c691eec3d26c42 100644 (file)
@@ -304,3 +304,4 @@ var PDFFunction = (function() {
     }
   };
 })();
+
index b997245a3e669fe5cc3711b75464e5af2f34eb6a..b281e21c144dd6b0fa5567b8c6896ce1ad85392c 100644 (file)
@@ -254,3 +254,4 @@ var JpegImage = (function() {
 
   return JpegImage;
 })();
+
index d4d07ec0d036230411419e69d0094cf1d0c7f5f9..c21b4aed1ceaaf6553be76659b8b8f190a1d26c2 100644 (file)
@@ -2941,3 +2941,4 @@ var Metrics = {
     'a191': 918
   }
 };
+
index 03fbf2e0a01b4b09199124ff34f7fdb332d71b8e..8d5684ec2f5db60f1e169036263a6c5c078a4ec7 100644 (file)
@@ -739,3 +739,4 @@ var PDFObjects = (function() {
   };
   return PDFObjects;
 })();
+
index 79a336d7f53cb06eaea2ca260388922f12a928e4..a740615eddc50e06e0b3d64d43ebc1a3446715c3 100644 (file)
@@ -633,3 +633,4 @@ var Linearization = (function linearizationLinearization() {
 
   return constructor;
 })();
+
index a551ac411cc7d11e7733ae02b95e247d5da2ae69..8e7760e51905595419227500594d32f25e057acb 100644 (file)
@@ -287,3 +287,4 @@ var TilingPattern = (function tilingPattern() {
 
   return TilingPattern;
 })();
+
index b2b8df7aa91c268a817446e65750b83bf6539fbb..34e163967c5278cb6ca0e531e27618ef2e9618dc 100644 (file)
@@ -12,3 +12,4 @@ var PDFJS = {};
   /* PDFJSSCRIPT_INCLUDE_ALL */
 
 })();
+
index baebc3190af07dc4171d940efbfa3e941348cedb..2b10e2fbd642db9b78fedefaaedcb567744b4b40 100644 (file)
@@ -2073,3 +2073,4 @@ var LZWStream = (function lzwStream() {
 
   return constructor;
 })();
+
index 344b99e53fe90f49f6ae1a99d795e3bc4d666a5a..d8d50337b41a1dce35c9a49e675f62c74fc058ed 100644 (file)
@@ -281,5 +281,7 @@ var Promise = (function() {
       }
     }
   };
+
   return Promise;
 })();
+
index d1ab4845881faf2f871a71878c01f8324e287db6..a83f316681ce4bb6c1efe24682c810421da21c3c 100644 (file)
@@ -122,11 +122,11 @@ var WorkerProcessorHandler = {
       var obj = new Font(font.name, font.file, font.properties);
 
       var str = '';
-      var data = obj.data;
-      if (data) {
-        var length = data.length;
-        for (var j = 0; j < length; j++)
-          str += String.fromCharCode(data[j]);
+      var objData = obj.data;
+      if (objData) {
+        var length = objData.length;
+        for (var j = 0; j < length; ++j)
+          str += String.fromCharCode(objData[j]);
       }
 
       obj.str = str;
@@ -180,3 +180,4 @@ if (typeof window === 'undefined') {
   var handler = new MessageHandler('worker_processor', globalScope);
   WorkerProcessorHandler.setup(handler);
 }
+
index f3646e5309938f840832ebc8e69e684eab9c1411..fb37ca9c4c10ffd894f4857bf7127b702f957b0a 100644 (file)
@@ -21,3 +21,4 @@ importScripts('../src/parser.js');
 importScripts('../src/pattern.js');
 importScripts('../src/stream.js');
 importScripts('../src/worker.js');
+