[Pkg-javascript-commits] [dojo] 48/87: 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: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 ebb8666cda9fc992d2c012068a0f33d28d841d4e
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.7/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 8591a1b..1ab5267 100644
--- a/uacss.js
+++ b/uacss.js
@@ -21,13 +21,7 @@ define(["./dom-geometry", "./_base/lang", "./ready", "./_base/sniff", "./_base/w
 		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,
@@ -38,10 +32,18 @@ define(["./dom-geometry", "./_base/lang", "./ready", "./_base/sniff", "./_base/w
 			"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