[Pkg-javascript-commits] [dojo] 25/88: Fix feature detection for switching mouse click constants, fixes #15404 !strict

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


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

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

commit 12f13f893f9fa4ab36cfe6db1732b1859946635a
Author: Kris Zyp <kriszyp at gmail.com>
Date:   Wed Sep 26 21:27:49 2012 +0000

    Fix feature detection for switching mouse click constants, fixes #15404 !strict
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.8/dojo@29715 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 mouse.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mouse.js b/mouse.js
index 4ad85be..8aa9d03 100644
--- a/mouse.js
+++ b/mouse.js
@@ -8,7 +8,7 @@ define(["./_base/kernel", "./on", "./has", "./dom", "./_base/window"], function(
 	has.add("events-mousewheel", win.doc && 'onmousewheel' in win.doc);
 
 	var mouseButtons;
-	if(has("dom-quirks") || !has("dom-addeventlistener")){
+	if((has("dom-quirks") && has("ie")) || !has("dom-addeventlistener")){
 		mouseButtons = {
 			LEFT:   1,
 			MIDDLE: 4,

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