Skip to content

Commit d73ec93

Browse files
committed
Grunt lint: fix: true
1 parent ee541b6 commit d73ec93

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Gruntfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ module.exports = function(grunt) {
9595
eslint: {
9696
target: ['Gruntfile.js', 'src/**/*.js', 'test/**/*.js'],
9797
options: {
98+
fix: true,
9899
configFile: '.eslintrc.js',
99100
}
100101
},

demo/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@
4848
});
4949

5050
$('#scroll-relative-plus').on('click', function() {
51-
var wHeight = $(window).height();
52-
$.smoothScroll('+=100px');
51+
$.smoothScroll({
52+
afterScroll: function() {
53+
console.log('hello!')
54+
}
55+
}, '+=100px');
5356
});
5457
$('#scroll-relative-minus').on('click', function() {
5558
$.smoothScroll('-=100px');

0 commit comments

Comments
 (0)