[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:41 UTC 2014


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

taffit pushed a commit to annotated tag 1.9.5
in repository dojo.

commit 40792195047c904ce4e46ad3286830620434011b
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 76791b9..9ff5e8c 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