Permalink
Browse files

Added src for linting

  • Loading branch information...
1 parent b8a0b21 commit a479bca1c2573e1403f4586f919bf19876ca4239 @schickling schickling committed May 26, 2013
Showing with 7 additions and 3 deletions.
  1. +3 −3 Gruntfile.js
  2. +4 −0 src/jquery.overscroll.js
View
@@ -7,7 +7,7 @@ module.exports = function (grunt) {
jshint: {
files: [
'Gruntfile.js',
- // 'src/*.js',
+ 'src/jquery.overscroll.js',
'test/*.js',
'test/modules/*.js',
'test/drift-canvas/js/app.js'
@@ -52,8 +52,8 @@ module.exports = function (grunt) {
grunt.registerTask('test', [
'jshint',
- 'connect:server',
- 'casperjs'
+ 'connect:server',
+ 'casperjs'
]);
grunt.registerTask('default', [
View
@@ -231,6 +231,7 @@
function scroll(event) {
var data = event.data;
if (!data.flags.dragged) {
+ /*jshint validthis:true */
moveThumbs(data.thumbs, data.sizing, this.scrollLeft, this.scrollTop);
}
}
@@ -286,6 +287,7 @@
// actually modify scroll offsets
if (options.wheelDirection === 'vertical'){
+ /*jshint validthis:true */
this.scrollTop -= delta;
} else if ( options.wheelDirection === 'horizontal') {
this.scrollLeft -= delta;
@@ -741,6 +743,7 @@
// You can find it's exposure point at the end
// of this closure
function overscroll(options) {
+ /*jshint validthis:true */
return this.removeOverscroll().each(function() {
setup(this, options);
});
@@ -750,6 +753,7 @@
// You can find it's exposure point at the end
// of this closure
function removeOverscroll() {
+ /*jshint validthis:true */
return this.each(function () {
teardown(this);
});

0 comments on commit a479bca

Please sign in to comment.