[Pkg-javascript-commits] [pdf.js] 148/161: Fix typo/unused argument in fontloader.js->spliceString()

David Prévot taffit at moszumanska.debian.org
Sat Apr 19 14:16:41 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 4ee35b0d46049f503f2716aafd58cb768832da2e
Author: fkaelberer <o_0_o at gmx.de>
Date:   Mon Mar 31 14:48:23 2014 +0200

    Fix typo/unused argument in fontloader.js->spliceString()
---
 src/display/font_loader.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/display/font_loader.js b/src/display/font_loader.js
index 0d855f3..d5745e3 100644
--- a/src/display/font_loader.js
+++ b/src/display/font_loader.js
@@ -171,8 +171,8 @@ var FontLoader = {
       }
 
       function spliceString(s, offset, remove, insert) {
-        var chunk1 = data.substr(0, offset);
-        var chunk2 = data.substr(offset + remove);
+        var chunk1 = s.substr(0, offset);
+        var chunk2 = s.substr(offset + remove);
         return chunk1 + insert + chunk2;
       }
 

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