@@ -13,10 +13,12 @@ var _Track = _interopRequireDefault(require("./Track"));
13
13
14
14
function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { default : obj } ; }
15
15
16
- function _objectSpread ( target ) { for ( var i = 1 ; i < arguments . length ; i ++ ) { var source = arguments [ i ] != null ? arguments [ i ] : { } ; var ownKeys = Object . keys ( source ) ; if ( typeof Object . getOwnPropertySymbols === 'function' ) { ownKeys = ownKeys . concat ( Object . getOwnPropertySymbols ( source ) . filter ( function ( sym ) { return Object . getOwnPropertyDescriptor ( source , sym ) . enumerable ; } ) ) ; } ownKeys . forEach ( function ( key ) { _defineProperty ( target , key , source [ key ] ) ; } ) ; } return target ; }
17
-
18
16
function _typeof ( obj ) { if ( typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ) { _typeof = function _typeof ( obj ) { return typeof obj ; } ; } else { _typeof = function _typeof ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ; } return _typeof ( obj ) ; }
19
17
18
+ function _extends ( ) { _extends = Object . assign || function ( target ) { for ( var i = 1 ; i < arguments . length ; i ++ ) { var source = arguments [ i ] ; for ( var key in source ) { if ( Object . prototype . hasOwnProperty . call ( source , key ) ) { target [ key ] = source [ key ] ; } } } return target ; } ; return _extends . apply ( this , arguments ) ; }
19
+
20
+ function _objectSpread ( target ) { for ( var i = 1 ; i < arguments . length ; i ++ ) { var source = arguments [ i ] != null ? arguments [ i ] : { } ; var ownKeys = Object . keys ( source ) ; if ( typeof Object . getOwnPropertySymbols === 'function' ) { ownKeys = ownKeys . concat ( Object . getOwnPropertySymbols ( source ) . filter ( function ( sym ) { return Object . getOwnPropertyDescriptor ( source , sym ) . enumerable ; } ) ) ; } ownKeys . forEach ( function ( key ) { _defineProperty ( target , key , source [ key ] ) ; } ) ; } return target ; }
21
+
20
22
function _objectWithoutProperties ( source , excluded ) { if ( source == null ) return { } ; var target = _objectWithoutPropertiesLoose ( source , excluded ) ; var key , i ; if ( Object . getOwnPropertySymbols ) { var sourceSymbolKeys = Object . getOwnPropertySymbols ( source ) ; for ( i = 0 ; i < sourceSymbolKeys . length ; i ++ ) { key = sourceSymbolKeys [ i ] ; if ( excluded . indexOf ( key ) >= 0 ) continue ; if ( ! Object . prototype . propertyIsEnumerable . call ( source , key ) ) continue ; target [ key ] = source [ key ] ; } } return target ; }
21
23
22
24
function _objectWithoutPropertiesLoose ( source , excluded ) { if ( source == null ) return { } ; var target = { } ; var sourceKeys = Object . keys ( source ) ; var key , i ; for ( i = 0 ; i < sourceKeys . length ; i ++ ) { key = sourceKeys [ i ] ; if ( excluded . indexOf ( key ) >= 0 ) continue ; target [ key ] = source [ key ] ; } return target ; }
@@ -160,12 +162,16 @@ function (_React$Component) {
160
162
props . className = "thumb " + ( type === TYPE_X ? "thumbX" : "thumbY" ) + ( className ? " " + className : "" ) ;
161
163
props . onMouseDown = this . handleDragStart ;
162
164
163
- props . ref = function ( ref ) {
164
- typeof elementRef === "function" && elementRef ( ref ) ;
165
- _this2 . element = ref ;
165
+ var ref = function ref ( _ref ) {
166
+ typeof elementRef === "function" && elementRef ( _ref ) ;
167
+ _this2 . element = _ref ;
166
168
} ;
167
169
168
- return renderer ? renderer ( props ) : _react . default . createElement ( "div" , props ) ;
170
+ return renderer ? renderer ( _objectSpread ( { } , props , {
171
+ elementRef : ref
172
+ } ) ) : _react . default . createElement ( "div" , _extends ( { } , props , {
173
+ ref : ref
174
+ } ) ) ;
169
175
}
170
176
} ] ) ;
171
177
0 commit comments