File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 737
737
} ,
738
738
739
739
_renderHandle : function ( style , child , i ) {
740
+ var self = this ;
740
741
var className = this . props . handleClassName + ' ' +
741
742
( this . props . handleClassName + '-' + i ) + ' ' +
742
743
( this . state . index === i ? this . props . handleActiveClassName : '' ) ;
743
744
744
745
return (
745
746
React . createElement ( 'div' , {
746
- ref : r => ( this [ 'handle' + i ] = r ) ,
747
+ ref : function ( r ) {
748
+ self [ 'handle' + i ] = r ;
749
+ } ,
747
750
key : 'handle' + i ,
748
751
className : className ,
749
752
style : style ,
786
789
} ,
787
790
788
791
_renderBar : function ( i , offsetFrom , offsetTo ) {
792
+ var self = this ;
789
793
return (
790
794
React . createElement ( 'div' , {
791
795
key : 'bar' + i ,
792
- ref : r => ( this [ 'bar' + i ] = r ) ,
796
+ ref : function ( r ) {
797
+ self [ 'bar' + i ] = r ;
798
+ } ,
793
799
className : this . props . barClassName + ' ' + this . props . barClassName + '-' + i ,
794
800
style : this . _buildBarStyle ( offsetFrom , this . state . upperBound - offsetTo )
795
801
} )
843
849
} ,
844
850
845
851
render : function ( ) {
852
+ var self = this ;
846
853
var state = this . state ;
847
854
var props = this . props ;
848
855
858
865
859
866
return (
860
867
React . createElement ( 'div' , {
861
- ref : r => ( this . slider = r ) ,
868
+ ref : function ( r ) {
869
+ self . slider = r ;
870
+ } ,
862
871
style : { position : 'relative' } ,
863
872
className : props . className + ( props . disabled ? ' disabled' : '' ) ,
864
873
onMouseDown : this . _onSliderMouseDown ,
You can’t perform that action at this time.
0 commit comments