Skip to content

Commit bf53003

Browse files
committed
Clean up defaults object comments
1 parent 7d15604 commit bf53003

File tree

3 files changed

+46
-18
lines changed

3 files changed

+46
-18
lines changed

jquery.smooth-scroll.js

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*!
2-
* Smooth Scroll - v1.4.10 - 2013-02-20
2+
* Smooth Scroll - v1.4.10 - 2013-03-02
33
* https://github.com/kswedberg/jquery-smooth-scroll
44
* Copyright (c) 2013 Karl Swedberg
5-
* Licensed MIT (/blob/master/LICENSE-MIT)
5+
* Licensed MIT (https://github.com/kswedberg/jquery-smooth-scroll/blob/master/LICENSE-MIT)
66
*/
77

88
(function($) {
@@ -12,15 +12,29 @@ var version = '1.4.10',
1212
exclude: [],
1313
excludeWithin:[],
1414
offset: 0,
15-
direction: 'top', // one of 'top' or 'left'
16-
scrollElement: null, // jQuery set of elements you wish to scroll (for $.smoothScroll).
17-
// if null (default), $('html, body').firstScrollable() is used.
18-
scrollTarget: null, // only use if you want to override default behavior
19-
beforeScroll: function() {}, // fn(opts) function to be called before scrolling occurs. "this" is the element(s) being scrolled
20-
afterScroll: function() {}, // fn(opts) function to be called after scrolling occurs. "this" is the triggering element
15+
16+
// one of 'top' or 'left'
17+
direction: 'top',
18+
19+
// jQuery set of elements you wish to scroll (for $.smoothScroll).
20+
// if null (default), $('html, body').firstScrollable() is used.
21+
scrollElement: null,
22+
23+
// only use if you want to override default behavior
24+
scrollTarget: null,
25+
26+
// fn(opts) function to be called before scrolling occurs.
27+
// `this` is the element(s) being scrolled
28+
beforeScroll: function() {},
29+
30+
// fn(opts) function to be called after scrolling occurs.
31+
// `this` is the triggering element
32+
afterScroll: function() {},
2133
easing: 'swing',
2234
speed: 400,
23-
autoCoefficent: 2 // coefficient for "auto" speed
35+
36+
// coefficient for "auto" speed
37+
autoCoefficent: 2
2438
},
2539

2640
getScrollable = function(opts) {

jquery.smooth-scroll.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/jquery.smooth-scroll.js

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,29 @@ var version = '1.4.10',
55
exclude: [],
66
excludeWithin:[],
77
offset: 0,
8-
direction: 'top', // one of 'top' or 'left'
9-
scrollElement: null, // jQuery set of elements you wish to scroll (for $.smoothScroll).
10-
// if null (default), $('html, body').firstScrollable() is used.
11-
scrollTarget: null, // only use if you want to override default behavior
12-
beforeScroll: function() {}, // fn(opts) function to be called before scrolling occurs. "this" is the element(s) being scrolled
13-
afterScroll: function() {}, // fn(opts) function to be called after scrolling occurs. "this" is the triggering element
8+
9+
// one of 'top' or 'left'
10+
direction: 'top',
11+
12+
// jQuery set of elements you wish to scroll (for $.smoothScroll).
13+
// if null (default), $('html, body').firstScrollable() is used.
14+
scrollElement: null,
15+
16+
// only use if you want to override default behavior
17+
scrollTarget: null,
18+
19+
// fn(opts) function to be called before scrolling occurs.
20+
// `this` is the element(s) being scrolled
21+
beforeScroll: function() {},
22+
23+
// fn(opts) function to be called after scrolling occurs.
24+
// `this` is the triggering element
25+
afterScroll: function() {},
1426
easing: 'swing',
1527
speed: 400,
16-
autoCoefficent: 2 // coefficient for "auto" speed
28+
29+
// coefficient for "auto" speed
30+
autoCoefficent: 2
1731
},
1832

1933
getScrollable = function(opts) {

0 commit comments

Comments
 (0)