File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -162,8 +162,8 @@ export const scroller = () => {
162162 x = options . x === undefined ? defaults . x : options . x ;
163163 y = options . y === undefined ? defaults . y : options . y ;
164164
165- var cumulativeOffsetContainer = _ . cumulativeOffset ( container ) ;
166- var cumulativeOffsetElement = _ . cumulativeOffset ( element ) ;
165+ let cumulativeOffsetContainer = _ . cumulativeOffset ( container ) ;
166+ let cumulativeOffsetElement = _ . cumulativeOffset ( element ) ;
167167
168168 if ( typeof offset === "function" ) {
169169 offset = offset ( element , container ) ;
@@ -212,7 +212,7 @@ export const scroller = () => {
212212 if ( onStart ) onStart ( element ) ;
213213
214214 if ( ! diffY && ! diffX ) {
215- onDone ( element ) ;
215+ if ( onDone ) onDone ( element ) ;
216216 return ;
217217 }
218218
You can’t perform that action at this time.
0 commit comments