@@ -36,11 +36,11 @@ var version = '1.4.13',
36
36
getScrollable = function ( opts ) {
37
37
var scrollable = [ ] ,
38
38
scrolled = false ,
39
- dir = opts . dir && opts . dir == 'left' ? 'scrollLeft' : 'scrollTop' ;
39
+ dir = opts . dir && opts . dir === 'left' ? 'scrollLeft' : 'scrollTop' ;
40
40
41
41
this . each ( function ( ) {
42
42
43
- if ( this == document || this == window ) { return ; }
43
+ if ( this === document || this = == window ) { return ; }
44
44
var el = $ ( this ) ;
45
45
if ( el [ dir ] ( ) > 0 ) {
46
46
scrollable . push ( this ) ;
@@ -61,7 +61,7 @@ var version = '1.4.13',
61
61
// (doing this because Safari sets scrollTop async,
62
62
// so can't set it to 1 and immediately get the value.)
63
63
if ( ! scrollable . length ) {
64
- this . each ( function ( index ) {
64
+ this . each ( function ( ) {
65
65
if ( this . nodeName === 'BODY' ) {
66
66
scrollable = [ this ] ;
67
67
}
@@ -74,8 +74,7 @@ var version = '1.4.13',
74
74
}
75
75
76
76
return scrollable ;
77
- } ,
78
- isTouch = 'ontouchend' in document ;
77
+ } ;
79
78
80
79
$ . fn . extend ( {
81
80
scrollable : function ( dir ) {
@@ -163,8 +162,7 @@ $.smoothScroll = function(options, px) {
163
162
offPos = 'offset' ,
164
163
scrollDir = 'scrollTop' ,
165
164
aniProps = { } ,
166
- aniOpts = { } ,
167
- scrollprops = [ ] ;
165
+ aniOpts = { } ;
168
166
169
167
if ( typeof options === 'number' ) {
170
168
opts = $ . extend ( { link : null } , $ . fn . smoothScroll . defaults , optionOverrides ) ;
@@ -173,13 +171,13 @@ $.smoothScroll = function(options, px) {
173
171
opts = $ . extend ( { link : null } , $ . fn . smoothScroll . defaults , options || { } , optionOverrides ) ;
174
172
if ( opts . scrollElement ) {
175
173
offPos = 'position' ;
176
- if ( opts . scrollElement . css ( 'position' ) == 'static' ) {
174
+ if ( opts . scrollElement . css ( 'position' ) === 'static' ) {
177
175
opts . scrollElement . css ( 'position' , 'relative' ) ;
178
176
}
179
177
}
180
178
}
181
179
182
- scrollDir = opts . direction == 'left' ? 'scrollLeft' : scrollDir ;
180
+ scrollDir = opts . direction === 'left' ? 'scrollLeft' : scrollDir ;
183
181
184
182
if ( opts . scrollElement ) {
185
183
$scroller = opts . scrollElement ;
0 commit comments