[Pkg-javascript-commits] [pdf.js] 20/207: Fixes typo in getAsync
David Prévot
taffit at moszumanska.debian.org
Mon Jul 28 15:36:24 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 b20b40406196189eedca95330ba23e2c9f4d03fe
Author: Yury Delendik <ydelendik at mozilla.com>
Date: Wed Jun 4 11:30:53 2014 -0500
Fixes typo in getAsync
---
src/core/obj.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/core/obj.js b/src/core/obj.js
index 0b6d2d7..879b7f0 100644
--- a/src/core/obj.js
+++ b/src/core/obj.js
@@ -114,15 +114,15 @@ var Dict = (function DictClosure() {
getAsync: function Dict_getAsync(key1, key2, key3) {
var value;
var xref = this.xref;
- if (typeof (value = this.map[key1]) !== undefined || key1 in this.map ||
- typeof key2 === undefined) {
+ if (typeof (value = this.map[key1]) !== 'undefined' || key1 in this.map ||
+ typeof key2 === 'undefined') {
if (xref) {
return xref.fetchIfRefAsync(value);
}
return Promise.resolve(value);
}
- if (typeof (value = this.map[key2]) !== undefined || key2 in this.map ||
- typeof key3 === undefined) {
+ if (typeof (value = this.map[key2]) !== 'undefined' || key2 in this.map ||
+ typeof key3 === 'undefined') {
if (xref) {
return xref.fetchIfRefAsync(value);
}
--
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