Skip to content

Commit

Permalink
Rename PDFPage -> Page
Browse files Browse the repository at this point in the history
  • Loading branch information
jviereck committed Feb 20, 2013
1 parent 9b863a0 commit de27696
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Expand Up @@ -50,7 +50,7 @@ Document.prototype.loadPages = function(pdfDocument) {
var pagesPromise = PDFJS.Promise.all(pagePromises);
pagesPromise.thenThis(this, function(promisedPages) {
this.pages = promisedPages.map(function(pdfPage) {
return new PDFPage(pdfPage);
return new Page(pdfPage);
});

this.initialized.resolve();
Expand Down Expand Up @@ -339,14 +339,14 @@ PageView.prototype = {
* An abstraction around the raw page object of PDF.JS, that also handles the
* rendering logic of (maybe multiple) pageView(s) that are based on this page.
*/
function PDFPage(pdfPage, number) {
function Page(pdfPage, number) {
this.number = number;
this.pdfPage = pdfPage;

this.renderContextList = {};
}

PDFPage.prototype = {
Page.prototype = {
render: function(pageView, renderController) {
var renderContext;

Expand Down

0 comments on commit de27696

Please sign in to comment.