()
| 9476 | _inheritsLoose(Collapse, _React$Component); |
| 9477 | |
| 9478 | function Collapse() { |
| 9479 | var _this; |
| 9480 | |
| 9481 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| 9482 | args[_key] = arguments[_key]; |
| 9483 | } |
| 9484 | |
| 9485 | _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; |
| 9486 | |
| 9487 | _this.handleEnter = function (elem) { |
| 9488 | elem.style[_this.getDimension()] = '0'; |
| 9489 | }; |
| 9490 | |
| 9491 | _this.handleEntering = function (elem) { |
| 9492 | var dimension = _this.getDimension(); |
| 9493 | |
| 9494 | elem.style[dimension] = _this._getScrollDimensionValue(elem, dimension); |
| 9495 | }; |
| 9496 | |
| 9497 | _this.handleEntered = function (elem) { |
| 9498 | elem.style[_this.getDimension()] = null; |
| 9499 | }; |
| 9500 | |
| 9501 | _this.handleExit = function (elem) { |
| 9502 | var dimension = _this.getDimension(); |
| 9503 | |
| 9504 | elem.style[dimension] = _this.props.getDimensionValue(dimension, elem) + "px"; |
| 9505 | triggerBrowserReflow(elem); |
| 9506 | }; |
| 9507 | |
| 9508 | _this.handleExiting = function (elem) { |
| 9509 | elem.style[_this.getDimension()] = '0'; |
| 9510 | }; |
| 9511 | |
| 9512 | return _this; |
| 9513 | } |
| 9514 | |
| 9515 | var _proto = Collapse.prototype; |
| 9516 |
nothing calls this directly
no test coverage detected
searching dependent graphs…