carouselbox
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -88,4 +88,3 @@ 'use strict'; | ||
value: function componentDidMount() { | ||
var carousel = this.refs.carousel.getDOMNode(); | ||
this.reactCarousel = new _flickity2.default(carousel, _extends({}, options, this.props)); | ||
this.reactCarousel = new _flickity2.default(this.carousel, _extends({}, options, this.props)); | ||
@@ -115,2 +114,4 @@ // expose selected index | ||
value: function render() { | ||
var _this2 = this; | ||
var divCreate = _react2.default.Children.map(this.props.children, function (child) { | ||
@@ -125,3 +126,5 @@ return _react2.default.createElement( | ||
'div', | ||
{ className: carouselContainer, ref: 'carousel' }, | ||
{ className: carouselContainer, ref: function ref(element) { | ||
_this2.carousel = element; | ||
} }, | ||
divCreate | ||
@@ -128,0 +131,0 @@ ); |
{ | ||
"name": "carouselbox", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "React Carousel Plugin based from Flickity", | ||
@@ -31,3 +31,5 @@ "main": "./lib/index.js", | ||
}, | ||
"peerDependencies": {} | ||
"peerDependencies": { | ||
"react": "0.13.3" | ||
} | ||
} |
@@ -0,0 +0,0 @@ # Flickity React |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
76562
7
190
3