[Pkg-javascript-commits] [dojo] 89/149: Update IE10+ feature detection for pointer event support. Use the window.MSPointerEvent instead of navigator.msPointerEnabled, which is deprecated.

David Prévot taffit at moszumanska.debian.org
Sat Feb 27 03:13:51 UTC 2016


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

taffit pushed a commit to branch master
in repository dojo.

commit 17ed3d6c61a787906ddae07176119508ef25cbac
Author: bitpshr <paulbouchon90 at gmail.com>
Date:   Wed Sep 30 11:43:39 2015 -0400

    Update IE10+ feature detection for pointer event support.
    Use the window.MSPointerEvent instead of navigator.msPointerEnabled, which is deprecated.
    
    Fixes #18602.
---
 has.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/has.js b/has.js
index 8f0ed13..f1006c3 100644
--- a/has.js
+++ b/has.js
@@ -111,7 +111,7 @@ define(["require", "module"], function(require, module){
 
 		// Pointer Events support
 		has.add("pointer-events", "onpointerdown" in document);
-		has.add("MSPointer", "msMaxTouchPoints" in navigator); //IE10 (+IE11 preview)
+		has.add("MSPointer", "MSPointerEvent" in window); //IE10 (+IE11 preview)
 
 		// I don't know if any of these tests are really correct, just a rough guess
 		has.add("device-width", screen.availWidth || innerWidth);

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