Remove unnecessary var declaration (#7666)
Filip Spiridonov committed
Sep 6, 2016 at 08:31 UTC
0c77b2f3eb28471ad664b6272b7426603b757527
1 file changed
+4
-6
src/renderers/dom/client/ReactEventListener.js
+4
-6
@@ -111,13 +111,12 @@ var ReactEventListener = {
111
*
112
* @param {string} topLevelType Record from `EventConstants`.
113
* @param {string} handlerBaseName Event name (e.g. "click").
114
- * @param {object} handle Element on which to attach listener.
114
+ * @param {object} element Element on which to attach listener.
115
* @return {?object} An object with a remove function which will forcefully
116
* remove the listener.
117
* @internal
118
*/
119
- trapBubbledEvent: function(topLevelType, handlerBaseName, handle) {
120
- var element = handle;
119
+ trapBubbledEvent: function(topLevelType, handlerBaseName, element) {
120
if (!element) {
121
return null;
122
}
@@ -133,13 +132,12 @@ var ReactEventListener = {
132
*
133
* @param {string} topLevelType Record from `EventConstants`.
134
* @param {string} handlerBaseName Event name (e.g. "click").
136
- * @param {object} handle Element on which to attach listener.
135
+ * @param {object} element Element on which to attach listener.
136
* @return {?object} An object with a remove function which will forcefully
137
* remove the listener.
138
* @internal
139
*/
141
- trapCapturedEvent: function(topLevelType, handlerBaseName, handle) {
142
- var element = handle;
140
+ trapCapturedEvent: function(topLevelType, handlerBaseName, element) {
141
if (!element) {
142
return null;
143
}