[Pkg-javascript-commits] [pdf.js] 57/210: Add onError function to ChunkedStreamManager

David Prévot taffit at moszumanska.debian.org
Thu Jun 5 14:21:01 UTC 2014


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

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

commit b6ff4aea2b8fa12395852adf21545d9ea5d16210
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Thu May 1 18:20:55 2014 +0200

    Add onError function to ChunkedStreamManager
---
 src/core/chunked_stream.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/core/chunked_stream.js b/src/core/chunked_stream.js
index 69722fa..6c0c16d 100644
--- a/src/core/chunked_stream.js
+++ b/src/core/chunked_stream.js
@@ -504,6 +504,10 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
       });
     },
 
+    onError: function ChunkedStreamManager_onError(err) {
+      this._loadedStreamCapability.reject(err);
+    },
+
     getBeginChunk: function ChunkedStreamManager_getBeginChunk(begin) {
       var chunk = Math.floor(begin / this.chunkSize);
       return chunk;

-- 
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