[Pkg-javascript-commits] [dojo] 05/20: refs #18288, fix dom-attr return of non boolean when attr doesn't exist
David Prévot
taffit at moszumanska.debian.org
Mon Oct 20 17:39:38 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository dojo.
commit 9cd1e8bb276801aca79396686b221d8505e4b0ff
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 e239ee0..6d5f3ed 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