[Pkg-javascript-commits] [dojo] 34/88: As it turns out, has("ie") returns undefined, not false, so it does not need to be checked twice. Refs #12342. Backport to 1.8.

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:34 UTC 2014


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

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

commit 676e225387389701e7a773280cdf44cf5cd1a712
Author: Colin Snover <github.com at zetafleet.com>
Date:   Fri Nov 23 05:15:28 2012 +0000

    As it turns out, has("ie") returns undefined, not false, so it does not need to be checked twice. Refs #12342. Backport to 1.8.
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.8/dojo@30010 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 dom-geometry.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dom-geometry.js b/dom-geometry.js
index 447acfe..4943dac 100644
--- a/dom-geometry.js
+++ b/dom-geometry.js
@@ -529,7 +529,7 @@ define(["./sniff", "./_base/window","./dom", "./dom-style"],
 			ret = node.getBoundingClientRect();
 		ret = {x: ret.left, y: ret.top, w: ret.right - ret.left, h: ret.bottom - ret.top};
 
-		if(has("ie") && has("ie") < 9){
+		if(has("ie") < 9){
 			// On IE<9 there's a 2px offset that we need to adjust for, see dojo.getIeDocumentElementOffset()
 			var offset = geom.getIeDocumentElementOffset(node.ownerDocument);
 

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