[Pkg-javascript-commits] [leaflet] 206/301: drop ie6 png24 hack, drop Browser.ie6/7 props

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:51 UTC 2014


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

js pushed a commit to branch master
in repository leaflet.

commit e45db4cd5b760c09225ad52e863c55e0730252e9
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Fri Nov 8 16:00:55 2013 +0200

    drop ie6 png24 hack, drop Browser.ie6/7 props
---
 src/core/Browser.js      |  4 ----
 src/layer/marker/Icon.js | 15 ++-------------
 2 files changed, 2 insertions(+), 17 deletions(-)

diff --git a/src/core/Browser.js b/src/core/Browser.js
index dda8a07..53908fc 100644
--- a/src/core/Browser.js
+++ b/src/core/Browser.js
@@ -5,8 +5,6 @@
 (function () {
 
 	var ie = 'ActiveXObject' in window,
-	    ie6 = ie && !window.XMLHttpRequest,
-	    ie7 = ie && !document.querySelector,
 		ielt9 = ie && !document.addEventListener,
 
 	    // terrible browser detection to work around Safari / iOS / Android browser bugs
@@ -69,8 +67,6 @@
 
 	L.Browser = {
 		ie: ie,
-		ie6: ie6,
-		ie7: ie7,
 		ielt9: ielt9,
 		webkit: webkit,
 		gecko: gecko && !webkit && !window.opera && !ie,
diff --git a/src/layer/marker/Icon.js b/src/layer/marker/Icon.js
index e67ed82..705462a 100644
--- a/src/layer/marker/Icon.js
+++ b/src/layer/marker/Icon.js
@@ -80,19 +80,8 @@ L.Icon = L.Class.extend({
 	},
 
 	_createImg: function (src, el) {
-
-		if (!L.Browser.ie6) {
-			if (!el) {
-				el = document.createElement('img');
-			}
-			el.src = src;
-		} else {
-			if (!el) {
-				el = document.createElement('div');
-			}
-			el.style.filter =
-			        'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + src + '")';
-		}
+		el = el || document.createElement('img');
+		el.src = src;
 		return el;
 	},
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list