react-img-carousel
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -212,2 +212,4 @@ 'use strict'; | ||
this.calcLeftOffset(); | ||
window.addEventListener('resize', this.calcLeftOffset, false); | ||
@@ -787,6 +789,2 @@ } | ||
this.setState({ | ||
leftOffset: 0 | ||
}); | ||
return; | ||
@@ -798,3 +796,5 @@ } | ||
this.setState({ leftOffset: leftOffset }); | ||
if (leftOffset !== this.state.leftOffset) { | ||
this.setState({ leftOffset: leftOffset }); | ||
} | ||
} | ||
@@ -801,0 +801,0 @@ |
{ | ||
"name": "react-img-carousel", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Provides an image carousel React component.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -143,2 +143,4 @@ import React, { PropTypes, Component, Children, cloneElement } from 'react'; | ||
this.calcLeftOffset(); | ||
window.addEventListener('resize', this.calcLeftOffset, false); | ||
@@ -620,6 +622,2 @@ } | ||
this.setState({ | ||
leftOffset: 0 | ||
}); | ||
return; | ||
@@ -631,3 +629,5 @@ } | ||
this.setState({ leftOffset }); | ||
if (leftOffset !== this.state.leftOffset) { | ||
this.setState({ leftOffset }); | ||
} | ||
} | ||
@@ -634,0 +634,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
98150