File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,6 @@ export default class ImageGallery extends React.Component {
59
59
offsetPercentage : 0 ,
60
60
galleryWidth : 0
61
61
}
62
-
63
- this . _slideLeft = debounceEventHandler ( this . _slideLeft . bind ( this ) , MIN_INTERVAL , true )
64
- this . _slideRight = debounceEventHandler ( this . _slideRight . bind ( this ) , MIN_INTERVAL , true )
65
- this . _handleResize = this . _handleResize . bind ( this )
66
- this . _handleKeyDown = this . _handleKeyDown . bind ( this )
67
62
}
68
63
69
64
componentDidUpdate ( prevProps , prevState ) {
@@ -87,9 +82,15 @@ export default class ImageGallery extends React.Component {
87
82
}
88
83
89
84
componentWillMount ( ) {
85
+ this . _slideLeft = debounceEventHandler (
86
+ this . _slideLeft . bind ( this ) , MIN_INTERVAL , true )
87
+
88
+ this . _slideRight = debounceEventHandler (
89
+ this . _slideRight . bind ( this ) , MIN_INTERVAL , true )
90
+
91
+ this . _handleResize = this . _handleResize . bind ( this )
92
+ this . _handleKeyDown = this . _handleKeyDown . bind ( this )
90
93
this . _thumbnailDelay = 300
91
- this . _ghotClickDelay = 600
92
- this . _preventGhostClick = false
93
94
}
94
95
95
96
componentDidMount ( ) {
You can’t perform that action at this time.
0 commit comments