[Pkg-javascript-commits] [dojo] 19/32: Backport [29787] to 1.6 branch to future proof the HTML CSS browser class list against browser updates. Refs #16110.
David Prévot
taffit at moszumanska.debian.org
Thu Aug 21 17:39:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.6.2
in repository dojo.
commit 3f1a25efcef99ca6295b5c18b6c00c3eb043fead
Author: Bill Keese <bill at dojotoolkit.org>
Date: Mon Dec 17 22:09:14 2012 +0000
Backport [29787] to 1.6 branch to future proof the HTML CSS browser class list against browser updates. Refs #16110.
git-svn-id: http://svn.dojotoolkit.org/src/branches/1.6/dojo@30199 560b804f-0ae3-0310-86f3-f6aa0a117693
---
uacss.js | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/uacss.js b/uacss.js
index 811ce44..9131759 100644
--- a/uacss.js
+++ b/uacss.js
@@ -20,13 +20,7 @@ define("dojo/uacss", ["dojo"], function(dojo) {
boxModel = d.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: d.isQuirks,
- dj_iequirks: ie && d.isQuirks,
// NOTE: Opera not supported by dijit
dj_opera: opera,
@@ -37,10 +31,18 @@ define("dojo/uacss", ["dojo"], function(dojo) {
dj_safari: d.isSafari,
dj_chrome: d.isChrome,
- dj_gecko: d.isMozilla,
- dj_ff3: maj(ff) == 3
+ dj_gecko: d.isMozilla
}; // no dojo unsupported browsers
+ if(ie){
+ classes["dj_ie"] = true;
+ classes["dj_ie" + maj(ie)] = true;
+ classes["dj_iequirks"] = d.isQuirks;
+ }
+ 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