Skip to content

Commit

Permalink
Release candidate 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Japjappedulap authored and ovidiusabou committed Feb 6, 2019
1 parent b535fa7 commit 237154b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build/image-gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ var ImageGallery = function (_React$Component) {
_this.setState({
galleryWidth: _this._imageGallery.offsetWidth
});
if (_this.props.onImageGalleryWidthInitialized && _this._imageGallery.offsetWidth > 0 && previousGalleryWidth === 0) {
_this.props.onImageGalleryWidthInitialized();
if (_this.props.onImageGalleryReady && _this._imageGallery.offsetWidth > 0 && previousGalleryWidth === 0) {
_this.props.onImageGalleryReady();
}
}

Expand Down Expand Up @@ -1178,7 +1178,7 @@ ImageGallery.propTypes = {
onTouchStart: _propTypes2.default.func,
onMouseOver: _propTypes2.default.func,
onMouseLeave: _propTypes2.default.func,
onImageGalleryWidthInitialized: _propTypes2.default.func,
onImageGalleryReady: _propTypes2.default.func,
onThumbnailError: _propTypes2.default.func,
onThumbnailClick: _propTypes2.default.func,
renderCustomControls: _propTypes2.default.func,
Expand Down
6 changes: 3 additions & 3 deletions src/ImageGallery.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class ImageGallery extends React.Component {
onTouchStart: PropTypes.func,
onMouseOver: PropTypes.func,
onMouseLeave: PropTypes.func,
onImageGalleryWidthInitialized: PropTypes.func,
onImageGalleryReady: PropTypes.func,
onThumbnailError: PropTypes.func,
onThumbnailClick: PropTypes.func,
renderCustomControls: PropTypes.func,
Expand Down Expand Up @@ -434,8 +434,8 @@ export default class ImageGallery extends React.Component {
this.setState({
galleryWidth: this._imageGallery.offsetWidth
});
if (this.props.onImageGalleryWidthInitialized && this._imageGallery.offsetWidth > 0 && previousGalleryWidth === 0) {
this.props.onImageGalleryWidthInitialized();
if (this.props.onImageGalleryReady && this._imageGallery.offsetWidth > 0 && previousGalleryWidth === 0) {
this.props.onImageGalleryReady();
}
}

Expand Down

0 comments on commit 237154b

Please sign in to comment.