Advertisement
Al0rse

react sanfona

Dec 14th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.         key: 'handleExpand',
  3.         value: function handleExpand() {
  4.           var _this2 = this;
  5.           const {onExpand, slug} = this.props;
  6.  
  7.           // var onExpand = this.props.onExpand;
  8.  
  9.  
  10.           this.startTransition();
  11.           this.timeout = setTimeout(function () {
  12.             _this2.setState({
  13.               maxHeight: 'none',
  14.               overflow: 'visible'
  15.             });
  16.  
  17.             if (onExpand) {
  18.               onExpand(slug);
  19.             }
  20.           }, this.state.duration);
  21.         }
  22.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement