File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 16
16
17
17
( function ( $ ) {
18
18
19
- var version = '1.3' ;
19
+ var version = '1.3.1 ' ;
20
20
21
21
var locationPath = filterPath ( location . pathname ) ;
22
22
@@ -58,7 +58,8 @@ $.fn.extend({
58
58
return this . pushStack ( scrl ) ;
59
59
} ,
60
60
61
- smoothScroll : function ( options ) {
61
+ smoothScroll : function ( options ) {
62
+ options = options || { } ;
62
63
var opts = $ . extend ( { } , $ . fn . smoothScroll . defaults , options ) ;
63
64
this . die ( 'click.smoothscroll' ) . live ( 'click.smoothscroll' , function ( event ) {
64
65
@@ -87,8 +88,8 @@ $.fn.extend({
87
88
}
88
89
}
89
90
90
- if ( include ) {
91
- opts . scrollTarget = opts . scrollTarget || thisHash ;
91
+ if ( include ) {
92
+ opts . scrollTarget = options . scrollTarget || thisHash ;
92
93
opts . link = link ;
93
94
event . preventDefault ( ) ;
94
95
$ . smoothScroll ( opts ) ;
You can’t perform that action at this time.
0 commit comments