[Pkg-javascript-commits] [pdf.js] 77/246: Add strict equalities in src/core/core.js
David Prévot
taffit at moszumanska.debian.org
Sun Sep 7 15:36:27 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 83a4c68df9ab8c9703d3da2c424db0b08926da2a
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Fri Aug 1 18:24:51 2014 +0200
Add strict equalities in src/core/core.js
---
src/core/core.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/core.js b/src/core/core.js
index 4d130b0..d61aedc 100644
--- a/src/core/core.js
+++ b/src/core/core.js
@@ -311,7 +311,7 @@ var PDFDocument = (function PDFDocumentClosure() {
var str = strBuf.join('');
stream.pos = pos;
var index = backwards ? str.lastIndexOf(needle) : str.indexOf(needle);
- if (index == -1) {
+ if (index === -1) {
return false; /* not found */
}
stream.pos += index;
--
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