Skip to content

Commit

Permalink
remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
jljsj33 committed May 11, 2016
1 parent 44d39b3 commit fdc5d59
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/BannerAnim.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ class BannerAnim extends Component {
}

componentWillReceiveProps(nextProps) {
console.log(this.children, 1)
// 在动画时不刷新 children 会在结束后触发;
const _children = this.saveChildren(nextProps.children, true);

Expand All @@ -68,7 +67,6 @@ class BannerAnim extends Component {
this.children = _children;
} else {
children = this.replaceChildrenArrowThumb(this.children, _children);
console.log(this.children.elemWrapper, children)
}
this.setState({ children });
}
Expand Down Expand Up @@ -434,7 +432,7 @@ class BannerAnim extends Component {
return React.cloneElement(item, { ..._item.props, ...item.props });
});
children.thumbWrapper = children.thumbWrapper.map(item => {
let _item = currentChild.thumbWrapper.filter(arrowItem => arrowItem.key === item.key)[0];
const _item = currentChild.thumbWrapper.filter(arrowItem => arrowItem.key === item.key)[0];
return React.cloneElement(item, { ..._item.props, ...item.props });
});
return currentChild.elemWrapper.concat(children.arrowWrapper, children.thumbWrapper);
Expand Down

0 comments on commit fdc5d59

Please sign in to comment.