[Pkg-javascript-commits] [pdf.js] 14/246: Fixes typo in promises implementation for legacy browsers

David Prévot taffit at moszumanska.debian.org
Sun Sep 7 15:36:20 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 41faa783683f1035acd4652aafde5fb75391898e
Author: Tim van der Meij <timvandermeij at gmail.com>
Date:   Thu Jul 24 17:11:22 2014 +0200

    Fixes typo in promises implementation for legacy browsers
---
 src/shared/util.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/util.js b/src/shared/util.js
index 78e4f59..94835c6 100644
--- a/src/shared/util.js
+++ b/src/shared/util.js
@@ -1323,7 +1323,7 @@ PDFJS.createPromiseCapability = createPromiseCapability;
 
     then: function Promise_then(onResolve, onReject) {
       var nextPromise = new Promise(function (resolve, reject) {
-        this.resolve = reject;
+        this.resolve = resolve;
         this.reject = reject;
       });
       this._handlers.push({

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list