From 88d5fa0fc3ea3f1d51766362f7624c7d16749ef2 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Tue, 30 Sep 2014 15:42:28 -0500 Subject: [PATCH] Fixes examples comments. --- examples/components/simpleviewer.html | 2 +- examples/components/simpleviewer.js | 11 ++++++----- examples/learning/helloworld.html | 5 +++-- examples/learning/prevnext.html | 5 +++-- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/examples/components/simpleviewer.html b/examples/components/simpleviewer.html index b1d6c9d19..987a14032 100644 --- a/examples/components/simpleviewer.html +++ b/examples/components/simpleviewer.html @@ -29,7 +29,7 @@ limitations under the License. } - + diff --git a/examples/components/simpleviewer.js b/examples/components/simpleviewer.js index 1934a5a6e..139adfa49 100644 --- a/examples/components/simpleviewer.js +++ b/examples/components/simpleviewer.js @@ -16,16 +16,17 @@ 'use strict'; if (!PDFJS.PDFViewer || !PDFJS.getDocument) { - alert('Please built the library and components using\n' + - ' `node make generic components`'); + alert('Please build the library and components using\n' + + ' `node make generic components`'); } -// If pdf.js must be execute via eval or pdf.worker.js is located at the -// different location than pdf.js, specify workerSrc. +// In cases when the pdf.worker.js is located at the different folder than the +// pdf.js's one, or the pdf.js is executed via eval(), the workerSrc property +// shall be specified. // // PDFJS.workerSrc = '../../build/pdf.worker.js'; -// Some PDFs need external cmaps +// Some PDFs need external cmaps. // // PDFJS.cMapUrl = '../../external/bcmaps/'; // PDFJS.cMapPacked = true; diff --git a/examples/learning/helloworld.html b/examples/learning/helloworld.html index 9518127ee..347dbbe99 100644 --- a/examples/learning/helloworld.html +++ b/examples/learning/helloworld.html @@ -30,8 +30,9 @@ // PDFJS.disableWorker = true; // - // If pdf.js must be execute via eval or pdf.worker.js is located at the - // different location than pdf.js, specify workerSrc. + // In cases when the pdf.worker.js is located at the different folder than the + // pdf.js's one, or the pdf.js is executed via eval(), the workerSrc property + // shall be specified. // // PDFJS.workerSrc = '../../build/pdf.worker.js'; diff --git a/examples/learning/prevnext.html b/examples/learning/prevnext.html index 4ab65d9e9..0da467b79 100644 --- a/examples/learning/prevnext.html +++ b/examples/learning/prevnext.html @@ -40,8 +40,9 @@ // PDFJS.disableWorker = true; // - // If pdf.js must be execute via eval or pdf.worker.js is located at the - // different location than pdf.js, specify workerSrc. + // In cases when the pdf.worker.js is located at the different folder than the + // pdf.js's one, or the pdf.js is executed via eval(), the workerSrc property + // shall be specified. // // PDFJS.workerSrc = '../../build/pdf.worker.js';