From 9dbc29e27607088e19bb9c74167078375f34ba04 Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Thu, 4 Jun 2015 13:56:05 -0700 Subject: [PATCH] Convert ReactDOMButton --- .../dom/client/wrappers/ReactDOMButton.js | 42 +++++++------------ src/renderers/dom/shared/ReactDOMComponent.js | 9 ++++ .../dom/shared/ReactDefaultInjection.js | 2 - 3 files changed, 24 insertions(+), 29 deletions(-) diff --git a/src/renderers/dom/client/wrappers/ReactDOMButton.js b/src/renderers/dom/client/wrappers/ReactDOMButton.js index 5e38d35fea83c..857b995d26cdd 100644 --- a/src/renderers/dom/client/wrappers/ReactDOMButton.js +++ b/src/renderers/dom/client/wrappers/ReactDOMButton.js @@ -11,52 +11,40 @@ 'use strict'; -var AutoFocusUtils = require('AutoFocusUtils'); -var ReactBrowserComponentMixin = require('ReactBrowserComponentMixin'); -var ReactClass = require('ReactClass'); -var ReactElement = require('ReactElement'); - -var keyMirror = require('keyMirror'); - -var button = ReactElement.createFactory('button'); - -var mouseListenerNames = keyMirror({ +var mouseListenerNames = { onClick: true, onDoubleClick: true, onMouseDown: true, onMouseMove: true, onMouseUp: true, + onClickCapture: true, onDoubleClickCapture: true, onMouseDownCapture: true, onMouseMoveCapture: true, onMouseUpCapture: true, -}); +}; /** * Implements a