react-free-carousel
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -84,9 +84,8 @@ 'use strict'; | ||
if (toArray(nextProps.children).length !== toArray(this.props.children).length) { | ||
setTimeout(function () { | ||
setTimeout(function () { | ||
if (toArray(nextProps.children).length !== toArray(_this3.props.children).length) { | ||
_this3.reRender(false); | ||
}, 200); | ||
} | ||
this.playCarousel(); | ||
} | ||
_this3.playCarousel(); | ||
}, 200); | ||
} | ||
@@ -93,0 +92,0 @@ }, { |
{ | ||
"name": "react-free-carousel", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Carousel component for free flex-box layout built with React.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -37,9 +37,8 @@ import React from 'react'; | ||
componentWillReceiveProps(nextProps) { | ||
if (toArray(nextProps.children).length !== toArray(this.props.children).length) { | ||
setTimeout(() => { | ||
setTimeout(() => { | ||
if (toArray(nextProps.children).length !== toArray(this.props.children).length) { | ||
this.reRender(false); | ||
}, 200); | ||
} | ||
this.playCarousel(); | ||
} | ||
this.playCarousel(); | ||
}, 200); | ||
} | ||
@@ -46,0 +45,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
849298