Comparing version 4.5.1 to 4.6.0
import addDOMEventListener from 'add-dom-event-listener'; | ||
import ReactDOM from 'react-dom'; | ||
export default function addEventListenerWrap(target, eventType, cb) { | ||
export default function addEventListenerWrap(target, eventType, cb, option) { | ||
/* eslint camelcase: 2 */ | ||
@@ -9,3 +9,3 @@ var callback = ReactDOM.unstable_batchedUpdates ? function run(e) { | ||
} : cb; | ||
return addDOMEventListener(target, eventType, callback); | ||
return addDOMEventListener(target, eventType, callback, option); | ||
} |
# History | ||
---- | ||
## 4.6.0 / 2016-10-15 | ||
- addDOMEventListener support option | ||
## 3.4.0 / 2016-08-16 | ||
@@ -5,0 +9,0 @@ |
@@ -18,3 +18,3 @@ 'use strict'; | ||
function addEventListenerWrap(target, eventType, cb) { | ||
function addEventListenerWrap(target, eventType, cb, option) { | ||
/* eslint camelcase: 2 */ | ||
@@ -24,4 +24,4 @@ var callback = _reactDom2['default'].unstable_batchedUpdates ? function run(e) { | ||
} : cb; | ||
return (0, _addDomEventListener2['default'])(target, eventType, callback); | ||
return (0, _addDomEventListener2['default'])(target, eventType, callback, option); | ||
} | ||
module.exports = exports['default']; |
{ | ||
"name": "rc-util", | ||
"version": "4.5.1", | ||
"version": "4.6.0", | ||
"description": "Common Utils For React Component", | ||
@@ -56,3 +56,3 @@ "keywords": [ | ||
"dependencies": { | ||
"add-dom-event-listener": "1.x", | ||
"add-dom-event-listener": "^1.1.0", | ||
"babel-runtime": "6.x", | ||
@@ -59,0 +59,0 @@ "prop-types": "^15.5.10", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75868