[Pkg-javascript-commits] [dojo] 03/05: refs #18288, fix dom-attr return of non boolean when attr doesn't exist
David Prévot
taffit at moszumanska.debian.org
Tue Dec 9 17:50:40 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.8.8
in repository dojo.
commit 1a09e0ff61a9fcfdef77e6e1ae03ac24c1ee2d76
Author: Gabriel Aszalos <gabriel.aszalos at thomsonreuters.com>
Date: Tue Sep 30 16:50:12 2014 -0700
refs #18288, fix dom-attr return of non boolean when attr doesn't exist
(cherry picked from commit b863f44dd53ec21d0a8084494a36c4fd2f871d63)
---
dom-attr.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dom-attr.js b/dom-attr.js
index 677c458..1353cd7 100644
--- a/dom-attr.js
+++ b/dom-attr.js
@@ -34,7 +34,7 @@ define(["exports", "./sniff", "./_base/lang", "./dom", "./dom-style", "./dom-pro
function _hasAttr(node, name){
var attr = node.getAttributeNode && node.getAttributeNode(name);
- return attr && attr.specified; // Boolean
+ return !!attr && attr.specified; // Boolean
}
// There is a difference in the presence of certain properties and their default values
--
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