From 6e9b6d1b7f16e2ed8577d54725f40e1ccdff49b5 Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Thu, 10 Oct 2013 12:41:29 -0700 Subject: [PATCH] Set buttons to undefined by default to catch lack of event.buttons support in PointerEvent constructor Need to copy event.which to facilitate this --- src/dispatcher.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/dispatcher.js b/src/dispatcher.js index 816a0bcb..f2c7d8ee 100644 --- a/src/dispatcher.js +++ b/src/dispatcher.js @@ -36,7 +36,8 @@ // event instance 'type', 'target', - 'currentTarget' + 'currentTarget', + 'which' ]; var CLONE_DEFAULTS = [ @@ -56,7 +57,7 @@ 0, null, // DOM Level 3 - 0, + undefined, // PointerEvent 0, 0, @@ -70,7 +71,8 @@ // event instance '', null, - null + null, + 0 ]; /**