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 ); }