Browse Source

PDF.js version 1.0.538

master v1.0.538
Yury Delendik 10 years ago
parent
commit
c9fc032306
  1. 2
      bower.json
  2. 18
      build/pdf.combined.js
  3. 18
      build/pdf.js
  4. 18
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.0.535", "version": "1.0.538",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",
"pdf", "pdf",

18
build/pdf.combined.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.535'; PDFJS.version = '1.0.538';
PDFJS.build = '49142e9'; PDFJS.build = '0b8b763';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -52,7 +52,7 @@ PDFJS.build = '49142e9';
var globalScope = (typeof window === 'undefined') ? this : window; var globalScope = (typeof window === 'undefined') ? this : window;
var isWorker = (typeof window == 'undefined'); var isWorker = (typeof window === 'undefined');
var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0]; var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
@ -303,7 +303,7 @@ function combineUrl(baseUrl, url) {
return url; return url;
} }
var i; var i;
if (url.charAt(0) == '/') { if (url.charAt(0) === '/') {
// absolute path // absolute path
i = baseUrl.indexOf('://'); i = baseUrl.indexOf('://');
if (url.charAt(1) === '/') { if (url.charAt(1) === '/') {
@ -973,7 +973,7 @@ function isEmptyObj(obj) {
} }
function isBool(v) { function isBool(v) {
return typeof v == 'boolean'; return typeof v === 'boolean';
} }
function isInt(v) { function isInt(v) {
@ -1125,7 +1125,7 @@ PDFJS.createPromiseCapability = createPromiseCapability;
pendingRejectionCheck: false, pendingRejectionCheck: false,
scheduleHandlers: function scheduleHandlers(promise) { scheduleHandlers: function scheduleHandlers(promise) {
if (promise._status == STATUS_PENDING) { if (promise._status === STATUS_PENDING) {
return; return;
} }
@ -1151,10 +1151,10 @@ PDFJS.createPromiseCapability = createPromiseCapability;
try { try {
if (nextStatus === STATUS_RESOLVED) { if (nextStatus === STATUS_RESOLVED) {
if (typeof(handler.onResolve) == 'function') { if (typeof handler.onResolve === 'function') {
nextValue = handler.onResolve(nextValue); nextValue = handler.onResolve(nextValue);
} }
} else if (typeof(handler.onReject) === 'function') { } else if (typeof handler.onReject === 'function') {
nextValue = handler.onReject(nextValue); nextValue = handler.onReject(nextValue);
nextStatus = STATUS_RESOLVED; nextStatus = STATUS_RESOLVED;
@ -1321,7 +1321,7 @@ PDFJS.createPromiseCapability = createPromiseCapability;
return; return;
} }
if (status == STATUS_RESOLVED && if (status === STATUS_RESOLVED &&
Promise.isPromise(value)) { Promise.isPromise(value)) {
value.then(this._updateStatus.bind(this, STATUS_RESOLVED), value.then(this._updateStatus.bind(this, STATUS_RESOLVED),
this._updateStatus.bind(this, STATUS_REJECTED)); this._updateStatus.bind(this, STATUS_REJECTED));

18
build/pdf.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.535'; PDFJS.version = '1.0.538';
PDFJS.build = '49142e9'; PDFJS.build = '0b8b763';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -52,7 +52,7 @@ PDFJS.build = '49142e9';
var globalScope = (typeof window === 'undefined') ? this : window; var globalScope = (typeof window === 'undefined') ? this : window;
var isWorker = (typeof window == 'undefined'); var isWorker = (typeof window === 'undefined');
var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0]; var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
@ -303,7 +303,7 @@ function combineUrl(baseUrl, url) {
return url; return url;
} }
var i; var i;
if (url.charAt(0) == '/') { if (url.charAt(0) === '/') {
// absolute path // absolute path
i = baseUrl.indexOf('://'); i = baseUrl.indexOf('://');
if (url.charAt(1) === '/') { if (url.charAt(1) === '/') {
@ -973,7 +973,7 @@ function isEmptyObj(obj) {
} }
function isBool(v) { function isBool(v) {
return typeof v == 'boolean'; return typeof v === 'boolean';
} }
function isInt(v) { function isInt(v) {
@ -1125,7 +1125,7 @@ PDFJS.createPromiseCapability = createPromiseCapability;
pendingRejectionCheck: false, pendingRejectionCheck: false,
scheduleHandlers: function scheduleHandlers(promise) { scheduleHandlers: function scheduleHandlers(promise) {
if (promise._status == STATUS_PENDING) { if (promise._status === STATUS_PENDING) {
return; return;
} }
@ -1151,10 +1151,10 @@ PDFJS.createPromiseCapability = createPromiseCapability;
try { try {
if (nextStatus === STATUS_RESOLVED) { if (nextStatus === STATUS_RESOLVED) {
if (typeof(handler.onResolve) == 'function') { if (typeof handler.onResolve === 'function') {
nextValue = handler.onResolve(nextValue); nextValue = handler.onResolve(nextValue);
} }
} else if (typeof(handler.onReject) === 'function') { } else if (typeof handler.onReject === 'function') {
nextValue = handler.onReject(nextValue); nextValue = handler.onReject(nextValue);
nextStatus = STATUS_RESOLVED; nextStatus = STATUS_RESOLVED;
@ -1321,7 +1321,7 @@ PDFJS.createPromiseCapability = createPromiseCapability;
return; return;
} }
if (status == STATUS_RESOLVED && if (status === STATUS_RESOLVED &&
Promise.isPromise(value)) { Promise.isPromise(value)) {
value.then(this._updateStatus.bind(this, STATUS_RESOLVED), value.then(this._updateStatus.bind(this, STATUS_RESOLVED),
this._updateStatus.bind(this, STATUS_REJECTED)); this._updateStatus.bind(this, STATUS_REJECTED));

18
build/pdf.worker.js vendored

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.535'; PDFJS.version = '1.0.538';
PDFJS.build = '49142e9'; PDFJS.build = '0b8b763';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -52,7 +52,7 @@ PDFJS.build = '49142e9';
var globalScope = (typeof window === 'undefined') ? this : window; var globalScope = (typeof window === 'undefined') ? this : window;
var isWorker = (typeof window == 'undefined'); var isWorker = (typeof window === 'undefined');
var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0]; var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
@ -303,7 +303,7 @@ function combineUrl(baseUrl, url) {
return url; return url;
} }
var i; var i;
if (url.charAt(0) == '/') { if (url.charAt(0) === '/') {
// absolute path // absolute path
i = baseUrl.indexOf('://'); i = baseUrl.indexOf('://');
if (url.charAt(1) === '/') { if (url.charAt(1) === '/') {
@ -973,7 +973,7 @@ function isEmptyObj(obj) {
} }
function isBool(v) { function isBool(v) {
return typeof v == 'boolean'; return typeof v === 'boolean';
} }
function isInt(v) { function isInt(v) {
@ -1125,7 +1125,7 @@ PDFJS.createPromiseCapability = createPromiseCapability;
pendingRejectionCheck: false, pendingRejectionCheck: false,
scheduleHandlers: function scheduleHandlers(promise) { scheduleHandlers: function scheduleHandlers(promise) {
if (promise._status == STATUS_PENDING) { if (promise._status === STATUS_PENDING) {
return; return;
} }
@ -1151,10 +1151,10 @@ PDFJS.createPromiseCapability = createPromiseCapability;
try { try {
if (nextStatus === STATUS_RESOLVED) { if (nextStatus === STATUS_RESOLVED) {
if (typeof(handler.onResolve) == 'function') { if (typeof handler.onResolve === 'function') {
nextValue = handler.onResolve(nextValue); nextValue = handler.onResolve(nextValue);
} }
} else if (typeof(handler.onReject) === 'function') { } else if (typeof handler.onReject === 'function') {
nextValue = handler.onReject(nextValue); nextValue = handler.onReject(nextValue);
nextStatus = STATUS_RESOLVED; nextStatus = STATUS_RESOLVED;
@ -1321,7 +1321,7 @@ PDFJS.createPromiseCapability = createPromiseCapability;
return; return;
} }
if (status == STATUS_RESOLVED && if (status === STATUS_RESOLVED &&
Promise.isPromise(value)) { Promise.isPromise(value)) {
value.then(this._updateStatus.bind(this, STATUS_RESOLVED), value.then(this._updateStatus.bind(this, STATUS_RESOLVED),
this._updateStatus.bind(this, STATUS_REJECTED)); this._updateStatus.bind(this, STATUS_REJECTED));

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.0.535", "version": "1.0.538",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",

Loading…
Cancel
Save