react-swipeable
Advanced tools
Comparing version 3.5.0 to 3.5.1
@@ -1,3 +0,7 @@ | ||
# 3.4.0 | ||
# 3.5.1 | ||
* fix React 15.2.0 warning for unknown properties on DOM elements | ||
# 3.5.0 | ||
* Add configurable container element via `nodeName` prop, defaults to `'div'`. See [#24](https://github.com/dogfessional/react-swipeable/issues/24) and [#40](https://github.com/dogfessional/react-swipeable/pull/40) for more info. | ||
@@ -4,0 +8,0 @@ |
@@ -155,7 +155,25 @@ 'use strict'; | ||
render: function render() { | ||
return React.createElement(this.props.nodeName, _extends({}, this.props, { | ||
var newProps = _extends({}, this.props, { | ||
onTouchStart: this.touchStart, | ||
onTouchMove: this.touchMove, | ||
onTouchEnd: this.touchEnd | ||
}), this.props.children); | ||
}); | ||
delete newProps.onSwiped; | ||
delete newProps.onSwiping; | ||
delete newProps.onSwipingUp; | ||
delete newProps.onSwipingRight; | ||
delete newProps.onSwipingDown; | ||
delete newProps.onSwipingLeft; | ||
delete newProps.onSwipedUp; | ||
delete newProps.onSwipedRight; | ||
delete newProps.onSwipedDown; | ||
delete newProps.onSwipedLeft; | ||
delete newProps.flickThreshold; | ||
delete newProps.delta; | ||
delete newProps.preventDefaultTouchmoveEvent; | ||
delete newProps.nodeName; | ||
delete newProps.children; | ||
return React.createElement(this.props.nodeName, newProps, this.props.children); | ||
} | ||
@@ -162,0 +180,0 @@ }); |
{ | ||
"name": "react-swipeable", | ||
"version": "3.5.0", | ||
"version": "3.5.1", | ||
"description": "Swipe bindings for react", | ||
@@ -5,0 +5,0 @@ "main": "lib/Swipeable.js", |
@@ -154,10 +154,28 @@ const React = require('react') | ||
render: function () { | ||
const newProps = { | ||
...this.props, | ||
onTouchStart: this.touchStart, | ||
onTouchMove: this.touchMove, | ||
onTouchEnd: this.touchEnd, | ||
} | ||
delete newProps.onSwiped | ||
delete newProps.onSwiping | ||
delete newProps.onSwipingUp | ||
delete newProps.onSwipingRight | ||
delete newProps.onSwipingDown | ||
delete newProps.onSwipingLeft | ||
delete newProps.onSwipedUp | ||
delete newProps.onSwipedRight | ||
delete newProps.onSwipedDown | ||
delete newProps.onSwipedLeft | ||
delete newProps.flickThreshold | ||
delete newProps.delta | ||
delete newProps.preventDefaultTouchmoveEvent | ||
delete newProps.nodeName | ||
delete newProps.children | ||
return React.createElement( | ||
this.props.nodeName, | ||
{ | ||
...this.props, | ||
onTouchStart: this.touchStart, | ||
onTouchMove: this.touchMove, | ||
onTouchEnd: this.touchEnd, | ||
}, | ||
newProps, | ||
this.props.children | ||
@@ -164,0 +182,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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
312
13043
5
1
0