[Pkg-javascript-commits] [dojo] 32/88: Refs #16110. Backport [29787] to 1.7.5 and 1.8.2 to future proof the HTML CSS browser class list against browser updates.
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 d43254db381406100206d0e0f6ab93adcfe0c901
Author: Douglas Hays <doughays at dojotoolkit.org>
Date: Fri Nov 16 13:30:40 2012 +0000
Refs #16110. Backport [29787] to 1.7.5 and 1.8.2 to future proof the HTML CSS browser class list against browser updates.
git-svn-id: http://svn.dojotoolkit.org/src/branches/1.8/dojo@29970 560b804f-0ae3-0310-86f3-f6aa0a117693
---
uacss.js | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/uacss.js b/uacss.js
index b7170a2..c72b9d3 100644
--- a/uacss.js
+++ b/uacss.js
@@ -30,13 +30,7 @@ define(["./dom-geometry", "./_base/lang", "./ready", "./sniff", "./_base/window"
boxModel = geometry.boxModel.replace(/-/,''),
classes = {
- "dj_ie": ie,
- "dj_ie6": maj(ie) == 6,
- "dj_ie7": maj(ie) == 7,
- "dj_ie8": maj(ie) == 8,
- "dj_ie9": maj(ie) == 9,
"dj_quirks": has("quirks"),
- "dj_iequirks": ie && has("quirks"),
// NOTE: Opera not supported by dijit
"dj_opera": opera,
@@ -47,10 +41,18 @@ define(["./dom-geometry", "./_base/lang", "./ready", "./sniff", "./_base/window"
"dj_safari": has("safari"),
"dj_chrome": has("chrome"),
- "dj_gecko": has("mozilla"),
- "dj_ff3": maj(ff) == 3
+ "dj_gecko": has("mozilla")
}; // no dojo unsupported browsers
+ if(ie){
+ classes["dj_ie"] = true;
+ classes["dj_ie" + maj(ie)] = true;
+ classes["dj_iequirks"] = has("quirks");
+ }
+ if(ff){
+ classes["dj_ff" + maj(ff)] = true;
+ }
+
classes["dj_" + boxModel] = true;
// apply browser, browser version, and box model class names
--
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