Просмотр исходного кода

PDF.js version 1.7.282 - See mozilla/pdf.js@466760efca3e4cf70c1cfc8faf1f005987fa1dbe

pdfjsbot 8 лет назад
Родитель
Сommit
a9ae7a0eac
7 измененных файлов с 35 добавлено и 28 удалено
  1. 1 1
      bower.json
  2. 9 12
      build/pdf.combined.js
  3. 9 12
      build/pdf.js
  4. 0 0
      build/pdf.min.js
  5. 2 2
      build/pdf.worker.js
  6. 1 1
      package.json
  7. 13 0
      web/compatibility.js

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.7.280",
+  "version": "1.7.282",
   "main": [
     "build/pdf.js",
     "build/pdf.worker.js"

+ 9 - 12
build/pdf.combined.js

@@ -20771,8 +20771,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
   }
  };
 }();
-exports.version = '1.7.280';
-exports.build = '1549a46e';
+exports.version = '1.7.282';
+exports.build = '466760ef';
 exports.getDocument = getDocument;
 exports.PDFDataRangeTransport = PDFDataRangeTransport;
 exports.PDFWorker = PDFWorker;
@@ -39527,8 +39527,8 @@ if (!globalScope.PDFJS) {
  globalScope.PDFJS = {};
 }
 var PDFJS = globalScope.PDFJS;
-PDFJS.version = '1.7.280';
-PDFJS.build = '1549a46e';
+PDFJS.version = '1.7.282';
+PDFJS.build = '466760ef';
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
  sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@@ -56627,12 +56627,9 @@ FontLoader.prototype = {
   styleSheet.insertRule(rule, styleSheet.cssRules.length);
  },
  clear: function fontLoaderClear() {
-  var styleElement = this.styleElement;
-  if (styleElement) {
-   if (styleElement.parentNode) {
-    styleElement.parentNode.removeChild(styleElement);
-   }
-   styleElement = this.styleElement = null;
+  if (this.styleElement) {
+   this.styleElement.remove();
+   this.styleElement = null;
   }
   this.nativeFontFaces.forEach(function (nativeFontFace) {
    document.fonts.delete(nativeFontFace);
@@ -57285,8 +57282,8 @@ exports.TilingPattern = TilingPattern;
 
 "use strict";
 
-var pdfjsVersion = '1.7.280';
-var pdfjsBuild = '1549a46e';
+var pdfjsVersion = '1.7.282';
+var pdfjsBuild = '466760ef';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(25);
 var pdfjsDisplayAPI = __w_pdfjs_require__(10);

+ 9 - 12
build/pdf.js

@@ -4485,8 +4485,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
   }
  };
 }();
-exports.version = '1.7.280';
-exports.build = '1549a46e';
+exports.version = '1.7.282';
+exports.build = '466760ef';
 exports.getDocument = getDocument;
 exports.PDFDataRangeTransport = PDFDataRangeTransport;
 exports.PDFWorker = PDFWorker;
@@ -6502,8 +6502,8 @@ if (!globalScope.PDFJS) {
  globalScope.PDFJS = {};
 }
 var PDFJS = globalScope.PDFJS;
-PDFJS.version = '1.7.280';
-PDFJS.build = '1549a46e';
+PDFJS.version = '1.7.282';
+PDFJS.build = '466760ef';
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
  sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@@ -8530,12 +8530,9 @@ FontLoader.prototype = {
   styleSheet.insertRule(rule, styleSheet.cssRules.length);
  },
  clear: function fontLoaderClear() {
-  var styleElement = this.styleElement;
-  if (styleElement) {
-   if (styleElement.parentNode) {
-    styleElement.parentNode.removeChild(styleElement);
-   }
-   styleElement = this.styleElement = null;
+  if (this.styleElement) {
+   this.styleElement.remove();
+   this.styleElement = null;
   }
   this.nativeFontFaces.forEach(function (nativeFontFace) {
    document.fonts.delete(nativeFontFace);
@@ -9188,8 +9185,8 @@ exports.TilingPattern = TilingPattern;
 
 "use strict";
 
-var pdfjsVersion = '1.7.280';
-var pdfjsBuild = '1549a46e';
+var pdfjsVersion = '1.7.282';
+var pdfjsBuild = '466760ef';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(8);
 var pdfjsDisplayAPI = __w_pdfjs_require__(3);

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
build/pdf.min.js


+ 2 - 2
build/pdf.worker.js

@@ -50540,8 +50540,8 @@ exports.Type1Parser = Type1Parser;
 
 "use strict";
 
-var pdfjsVersion = '1.7.280';
-var pdfjsBuild = '1549a46e';
+var pdfjsVersion = '1.7.282';
+var pdfjsBuild = '466760ef';
 var pdfjsCoreWorker = __w_pdfjs_require__(8);
 {
  __w_pdfjs_require__(18);

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.7.280",
+  "version": "1.7.282",
   "main": "build/pdf.js",
   "description": "Generic build of Mozilla's PDF.js library.",
   "keywords": [

+ 13 - 0
web/compatibility.js

@@ -646,4 +646,17 @@ if (typeof PDFJS === 'undefined') {
   });
 })();
 
+// Provides support for ChildNode.remove in legacy browsers.
+// Support: IE.
+(function checkChildNodeRemove() {
+  if (typeof Element.prototype.remove !== 'undefined') {
+    return;
+  }
+  Element.prototype.remove = function () {
+    if (this.parentNode) {
+      this.parentNode.removeChild(this);
+    }
+  };
+})();
+
 }).call((typeof window === 'undefined') ? this : window);

Некоторые файлы не были показаны из-за большого количества измененных файлов