[Pkg-javascript-commits] [dojo] 50/87: As it turns out, has("ie") returns undefined, not false, so it does not need to be checked twice. Refs #12342. Backport to 1.7.
David Prévot
taffit at moszumanska.debian.org
Thu Aug 21 17:39:20 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 483496b94b29618d0f1aee40e0fb82cd45d4db7b
Author: Colin Snover <github.com at zetafleet.com>
Date: Fri Nov 23 05:16:57 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.7.
git-svn-id: http://svn.dojotoolkit.org/src/branches/1.7/dojo@30011 560b804f-0ae3-0310-86f3-f6aa0a117693
---
dom-geometry.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dom-geometry.js b/dom-geometry.js
index a920ade..2772cef 100644
--- a/dom-geometry.js
+++ b/dom-geometry.js
@@ -693,8 +693,8 @@ define(["./_base/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};
//>>excludeStart("webkitMobile", kwArgs.webkitMobile);
- if(has("ie") && has("ie") < 9){
- // On IE there's a 2px offset that we need to adjust for, see dojo.getIeDocumentElementOffset()
+ 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();
// fixes the position in IE, quirks mode
--
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