[Pkg-javascript-commits] [dojo] 56/87: Return an empty array from a query for null, fixes #15191 !strict Backport to 1.7.
David Prévot
taffit at moszumanska.debian.org
Thu Aug 21 17:39:21 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.7.5
in repository dojo.
commit 31136725efb263915b6a00d4ccab684a116361c3
Author: Colin Snover <github.com at zetafleet.com>
Date: Fri Nov 23 21:49:06 2012 +0000
Return an empty array from a query for null, fixes #15191 !strict Backport to 1.7.
git-svn-id: http://svn.dojotoolkit.org/src/branches/1.7/dojo@30031 560b804f-0ae3-0310-86f3-f6aa0a117693
---
query.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/query.js b/query.js
index 4685e81..2144bfe 100644
--- a/query.js
+++ b/query.js
@@ -653,7 +653,7 @@ function queryForEngine(engine, NodeList){
return new NodeList([]);
}
}
- var results = typeof query == "string" ? engine(query, root) : query.orphan ? query : [query];
+ var results = typeof query == "string" ? engine(query, root) : query ? query.orphan ? query : [query] : [];
if(results.orphan){
// already wrapped
return results;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git
More information about the Pkg-javascript-commits
mailing list