From efc1e11b094158482df6db403fbb1b66c33d963c Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Mon, 15 Dec 2014 16:57:51 -0600 Subject: [PATCH] Make JSHint happy --- src/.jshintrc | 2 +- src/tables.js | 3 ++- src/tables.swipetoggle.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/.jshintrc b/src/.jshintrc index 439b30a..eaa5a63 100644 --- a/src/.jshintrc +++ b/src/.jshintrc @@ -11,5 +11,5 @@ "boss": true, "eqnull": true, "browser": true, - "predef": ["jQuery", "TableSaw", "console"] + "predef": ["jQuery", "Tablesaw", "console"] } diff --git a/src/tables.js b/src/tables.js index 79b50e8..4051619 100644 --- a/src/tables.js +++ b/src/tables.js @@ -1,3 +1,5 @@ +/*global Tablesaw:true */ + /* * tablesaw: A set of plugins for responsive tables * Stack and Column Toggle tables @@ -5,7 +7,6 @@ * MIT License */ -var Tablesaw; if( typeof Tablesaw === "undefined" ) { Tablesaw = {}; } diff --git a/src/tables.swipetoggle.js b/src/tables.swipetoggle.js index b5ef75a..f6e3c7c 100644 --- a/src/tables.swipetoggle.js +++ b/src/tables.swipetoggle.js @@ -227,7 +227,7 @@ e.preventDefault(); } }) - .bind( "touchend.swipetoggle", function( e ){ + .bind( "touchend.swipetoggle", function(){ if( x - originX < -1 * config.horizontalThreshold ){ advance( true ); }