11'use strict' ;
22
33Object . defineProperty ( exports , '__esModule' , {
4- value : true ,
4+ value : true
55} ) ;
66
77var _createClass = ( function ( ) {
@@ -52,7 +52,7 @@ function _classCallCheck(instance, Constructor) {
5252function _possibleConstructorReturn ( self , call ) {
5353 if ( ! self ) {
5454 throw new ReferenceError (
55- "this hasn't been initialised - super() hasn't been called" ,
55+ "this hasn't been initialised - super() hasn't been called"
5656 ) ;
5757 }
5858 return call && ( typeof call === 'object' || typeof call === 'function' )
@@ -64,16 +64,16 @@ function _inherits(subClass, superClass) {
6464 if ( typeof superClass !== 'function' && superClass !== null ) {
6565 throw new TypeError (
6666 'Super expression must either be null or a function, not ' +
67- typeof superClass ,
67+ typeof superClass
6868 ) ;
6969 }
7070 subClass . prototype = Object . create ( superClass && superClass . prototype , {
7171 constructor : {
7272 value : subClass ,
7373 enumerable : false ,
7474 writable : true ,
75- configurable : true ,
76- } ,
75+ configurable : true
76+ }
7777 } ) ;
7878 if ( superClass )
7979 Object . setPrototypeOf
@@ -91,8 +91,8 @@ var InfiniteScroll = (function(_Component) {
9191 this ,
9292 ( InfiniteScroll . __proto__ || Object . getPrototypeOf ( InfiniteScroll ) ) . call (
9393 this ,
94- props ,
95- ) ,
94+ props
95+ )
9696 ) ;
9797
9898 _this . scrollListener = _this . scrollListener . bind ( _this ) ;
@@ -105,7 +105,7 @@ var InfiniteScroll = (function(_Component) {
105105 value : function componentDidMount ( ) {
106106 this . pageLoaded = this . props . pageStart ;
107107 this . attachScrollListener ( ) ;
108- } ,
108+ }
109109 } ,
110110 {
111111 key : 'componentDidUpdate' ,
@@ -119,22 +119,22 @@ var InfiniteScroll = (function(_Component) {
119119 this . loadMore = false ;
120120 }
121121 this . attachScrollListener ( ) ;
122- } ,
122+ }
123123 } ,
124124 {
125125 key : 'componentWillUnmount' ,
126126 value : function componentWillUnmount ( ) {
127127 this . detachScrollListener ( ) ;
128128 this . detachMousewheelListener ( ) ;
129- } ,
129+ }
130130
131131 // Set a defaut loader for all your `InfiniteScroll` components
132132 } ,
133133 {
134134 key : 'setDefaultLoader' ,
135135 value : function setDefaultLoader ( loader ) {
136136 this . defaultLoader = loader ;
137- } ,
137+ }
138138 } ,
139139 {
140140 key : 'detachMousewheelListener' ,
@@ -147,9 +147,9 @@ var InfiniteScroll = (function(_Component) {
147147 scrollEl . removeEventListener (
148148 'mousewheel' ,
149149 this . mousewheelListener ,
150- this . props . useCapture ,
150+ this . props . useCapture
151151 ) ;
152- } ,
152+ }
153153 } ,
154154 {
155155 key : 'detachScrollListener' ,
@@ -162,14 +162,14 @@ var InfiniteScroll = (function(_Component) {
162162 scrollEl . removeEventListener (
163163 'scroll' ,
164164 this . scrollListener ,
165- this . props . useCapture ,
165+ this . props . useCapture
166166 ) ;
167167 scrollEl . removeEventListener (
168168 'resize' ,
169169 this . scrollListener ,
170- this . props . useCapture ,
170+ this . props . useCapture
171171 ) ;
172- } ,
172+ }
173173 } ,
174174 {
175175 key : 'getParentElement' ,
@@ -180,13 +180,13 @@ var InfiniteScroll = (function(_Component) {
180180 return scrollParent ;
181181 }
182182 return el && el . parentNode ;
183- } ,
183+ }
184184 } ,
185185 {
186186 key : 'filterProps' ,
187187 value : function filterProps ( props ) {
188188 return props ;
189- } ,
189+ }
190190 } ,
191191 {
192192 key : 'attachScrollListener' ,
@@ -205,23 +205,23 @@ var InfiniteScroll = (function(_Component) {
205205 scrollEl . addEventListener (
206206 'mousewheel' ,
207207 this . mousewheelListener ,
208- this . props . useCapture ,
208+ this . props . useCapture
209209 ) ;
210210 scrollEl . addEventListener (
211211 'scroll' ,
212212 this . scrollListener ,
213- this . props . useCapture ,
213+ this . props . useCapture
214214 ) ;
215215 scrollEl . addEventListener (
216216 'resize' ,
217217 this . scrollListener ,
218- this . props . useCapture ,
218+ this . props . useCapture
219219 ) ;
220220
221221 if ( this . props . initialLoad ) {
222222 this . scrollListener ( ) ;
223223 }
224- } ,
224+ }
225225 } ,
226226 {
227227 key : 'mousewheelListener' ,
@@ -231,7 +231,7 @@ var InfiniteScroll = (function(_Component) {
231231 if ( e . deltaY === 1 ) {
232232 e . preventDefault ( ) ;
233233 }
234- } ,
234+ }
235235 } ,
236236 {
237237 key : 'scrollListener' ,
@@ -277,7 +277,7 @@ var InfiniteScroll = (function(_Component) {
277277 this . loadMore = true ;
278278 }
279279 }
280- } ,
280+ }
281281 } ,
282282 {
283283 key : 'calculateOffset' ,
@@ -290,7 +290,7 @@ var InfiniteScroll = (function(_Component) {
290290 this . calculateTopPosition ( el ) +
291291 ( el . offsetHeight - scrollTop - window . innerHeight )
292292 ) ;
293- } ,
293+ }
294294 } ,
295295 {
296296 key : 'calculateTopPosition' ,
@@ -299,7 +299,7 @@ var InfiniteScroll = (function(_Component) {
299299 return 0 ;
300300 }
301301 return el . offsetTop + this . calculateTopPosition ( el . offsetParent ) ;
302- } ,
302+ }
303303 } ,
304304 {
305305 key : 'render' ,
@@ -334,7 +334,7 @@ var InfiniteScroll = (function(_Component) {
334334 'threshold' ,
335335 'useCapture' ,
336336 'useWindow' ,
337- 'getScrollParent' ,
337+ 'getScrollParent'
338338 ] ) ;
339339
340340 props . ref = function ( node ) {
@@ -357,8 +357,8 @@ var InfiniteScroll = (function(_Component) {
357357 }
358358 }
359359 return _react2 . default . createElement ( element , props , childrenArray ) ;
360- } ,
361- } ,
360+ }
361+ }
362362 ] ) ;
363363
364364 return InfiniteScroll ;
@@ -377,7 +377,7 @@ InfiniteScroll.propTypes = {
377377 getScrollParent : _propTypes2 . default . func ,
378378 threshold : _propTypes2 . default . number ,
379379 useCapture : _propTypes2 . default . bool ,
380- useWindow : _propTypes2 . default . bool ,
380+ useWindow : _propTypes2 . default . bool
381381} ;
382382InfiniteScroll . defaultProps = {
383383 element : 'div' ,
@@ -390,7 +390,7 @@ InfiniteScroll.defaultProps = {
390390 isReverse : false ,
391391 useCapture : false ,
392392 loader : null ,
393- getScrollParent : null ,
393+ getScrollParent : null
394394} ;
395395exports . default = InfiniteScroll ;
396396module . exports = exports [ 'default' ] ;
0 commit comments