[Pkg-javascript-commits] [dojo] 11/28: Add Microsoft-recommended UA sniff for IE11

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


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

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

commit fea66d3963b654a35a29ae82379f10fd64e34dfd
Author: Colin Snover <github.com at zetafleet.com>
Date:   Fri Nov 29 21:13:02 2013 +0000

    Add Microsoft-recommended UA sniff for IE11
    
    Fixes #17311
    
    (cherry picked from commit 28c2050cbb7f69daa57bd66e3b740a16bb19fd75)
    (cherry picked from commit bad851981604b4978e406edf11ab0a23b019a859)
    
    Conflicts:
    	sniff.js
---
 sniff.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sniff.js b/sniff.js
index 96bdb37..abc1663 100644
--- a/sniff.js
+++ b/sniff.js
@@ -25,6 +25,7 @@ define(["./has"], function(has){
 		has.add("quirks", document.compatMode == "BackCompat");
 		has.add("ios", /iPhone|iPod|iPad/.test(dua));
 		has.add("android", parseFloat(dua.split("Android ")[1]) || undefined);
+		has.add("trident", parseFloat(dav.split("Trident/")[1]) || undefined);
 
 		if(!has("webkit")){
 			// Opera
@@ -35,7 +36,7 @@ define(["./has"], function(has){
 			}
 
 			// Mozilla and firefox
-			if(dua.indexOf("Gecko") >= 0 && !has("khtml") && !has("webkit")){
+			if(dua.indexOf("Gecko") >= 0 && !has("khtml") && !has("webkit") && !has("trident")){
 				has.add("mozilla", tv);
 			}
 			if(has("mozilla")){

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