[Pkg-javascript-commits] [dojo] 21/149: refs #18288, fix dom-attr return of non boolean when attr doesn't exist

David Prévot taffit at moszumanska.debian.org
Sat Feb 27 03:13:43 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository dojo.

commit b863f44dd53ec21d0a8084494a36c4fd2f871d63
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
---
 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