[Pkg-javascript-commits] [dojo] 25/87: backport [27777]; refs #14746;	!strict
    David Prévot 
    taffit at moszumanska.debian.org
       
    Thu Aug 21 17:39:16 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 6d409f5bf44494346c5ba33756b1935cb911e228
Author: Rawld Gill <rgill at altoviso.com>
Date:   Wed Feb 8 04:13:01 2012 +0000
    backport [27777]; refs #14746; !strict
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.7/dojo@27785 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 dojo.js | 2 +-
 has.js  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dojo.js b/dojo.js
index 65b5a92..3cb8bd0 100644
--- a/dojo.js
+++ b/dojo.js
@@ -132,7 +132,7 @@
 		element = doc && doc.createElement("DiV"),
 
 		has = req.has = function(name){
-			return hasCache[name] = isFunction(hasCache[name]) ? hasCache[name](global, doc, element) : hasCache[name];
+			return isFunction(hasCache[name]) ? (hasCache[name] = hasCache[name](global, doc, element)) : hasCache[name];
 		},
 
 		hasCache = has.cache = defaultConfig.hasCache;
diff --git a/has.js b/has.js
index 64a03a7..d219ff0 100644
--- a/has.js
+++ b/has.js
@@ -44,7 +44,7 @@ define(["require"], function(require) {
 			//		Returns the value of the feature named by name. The feature must have been
 			//		previously added to the cache by has.add.
 
-			return cache[name] = typeof cache[name] == "function" ? cache[name](global, doc, element) : cache[name]; // Boolean
+			return typeof cache[name] == "function" ? (cache[name] = cache[name](global, doc, element)) : cache[name]; // Boolean
 		};
 
 		has.cache = cache;
-- 
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