diff --git a/src/display/api.js b/src/display/api.js index e2a8172f7..2a2587e04 100644 --- a/src/display/api.js +++ b/src/display/api.js @@ -217,7 +217,7 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() { * @return {Promise} A promise that is resolved with an array of all the * JavaScript strings in the name tree. */ - getJavaScript: function PDFDocumentProxy_getDestinations() { + getJavaScript: function PDFDocumentProxy_getJavaScript() { var promise = new PDFJS.Promise(); var js = this.pdfInfo.javaScript; promise.resolve(js);