File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
( function ( root , factory ) {
2
2
var namespace = 'VirtualScrollList'
3
+ /* istanbul ignore next */
3
4
if ( typeof exports === 'object' && typeof module === 'object' ) {
4
5
module . exports = factory ( namespace , require ( 'vue' ) )
5
6
} else if ( typeof define === 'function' && define . amd ) {
10
11
root [ namespace ] = factory ( namespace , root [ 'Vue' ] )
11
12
}
12
13
} ) ( this , function ( namespace , Vue2 ) {
14
+ /* istanbul ignore next */
13
15
if ( typeof Vue2 === 'object' && typeof Vue2 . default === 'function' ) {
14
16
Vue2 = Vue2 . default
15
17
}
16
18
19
+ /* istanbul ignore next */
17
20
var _debounce = function ( func , wait , immediate ) {
18
21
var timeout
19
22
return function ( ) {
101
104
onScroll : function ( e ) {
102
105
var delta = this . delta
103
106
var vsl = this . $refs . vsl
104
- var offset = ( vsl && ( vsl instanceof Vue2 ? vsl . $el : vsl ) . scrollTop ) || 0
107
+ var offset = ( vsl . $el || vsl ) . scrollTop || 0
105
108
106
109
if ( delta . total > delta . keeps ) {
107
110
this . updateZone ( offset )
319
322
setScrollTop : function ( scrollTop ) {
320
323
var vsl = this . $refs . vsl
321
324
if ( vsl ) {
322
- ( vsl instanceof Vue2 ? vsl . $el : vsl ) . scrollTop = scrollTop
325
+ ( vsl . $el || vsl ) . scrollTop = scrollTop
323
326
}
324
327
} ,
325
328
You can’t perform that action at this time.
0 commit comments