Skip to content

Commit

Permalink
Merge pull request #26 from newrdev/master
Browse files Browse the repository at this point in the history
Return a promise from the PdfCtrl.load() method.
  • Loading branch information
winkerVSbecks committed May 28, 2015
2 parents 0fa0928 + 3d66f71 commit f05b873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/pdf-ctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ angular.module('pdf')
docInitParams.url = url;
}

PDFJS
return PDFJS
.getDocument(docInitParams)
.then(function (_pdfDoc) {

Expand All @@ -133,4 +133,4 @@ angular.module('pdf')
};

self.load();
}]);
}]);

0 comments on commit f05b873

Please sign in to comment.