react-swipeable
Advanced tools
Comparing version 1.4.0 to 1.5.0
{ | ||
"name": "react-swipeable", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "Swipe bindings for react", | ||
@@ -28,3 +28,6 @@ "main": "Swipeable.js", | ||
"react": ">=0.12.x" | ||
}, | ||
"dependencies": { | ||
"object-assign": "^2.0.0" | ||
} | ||
} |
var React = require('react') | ||
var assign = require('object-assign') | ||
@@ -7,3 +8,2 @@ var FLICK_THRESHOLD = 0.6 | ||
propTypes: { | ||
className: React.PropTypes.string, | ||
onSwiped: React.PropTypes.func, | ||
@@ -29,3 +29,2 @@ onFlick: React.PropTypes.func, | ||
return { | ||
className: '', | ||
delta: 10 | ||
@@ -128,8 +127,7 @@ } | ||
render: function () { | ||
return React.createElement('div', { | ||
className: this.props.className, | ||
return React.createElement('div', assign({ | ||
onTouchStart: this.touchStart, | ||
onTouchMove: this.touchMove, | ||
onTouchEnd: this.touchEnd | ||
}, this.props.children) | ||
}, this.props), this.props.children) | ||
} | ||
@@ -136,0 +134,0 @@ }) |
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
6018
2
113
+ Addedobject-assign@^2.0.0
+ Addedobject-assign@2.1.1(transitive)