From c18a6827df7d097b5df78e119224487cb0f17387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 6 Jan 2014 15:45:30 +0100 Subject: [PATCH] fix jshint --- .../discourse/components/keyboard_shortcuts_component.js | 1 - .../javascripts/discourse/initializers/keyboard_shortcuts.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js b/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js index c1db3945c..b0fdc8bc8 100644 --- a/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js +++ b/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js @@ -137,7 +137,6 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({ _changeSection: function(num) { var $sections = $('#category-filter').find('li'), - $active = $sections.filter('.active'), index = $sections.index('.active'); $sections.eq(index + num).find('a').click(); diff --git a/app/assets/javascripts/discourse/initializers/keyboard_shortcuts.js b/app/assets/javascripts/discourse/initializers/keyboard_shortcuts.js index 3193ed98c..54061824d 100644 --- a/app/assets/javascripts/discourse/initializers/keyboard_shortcuts.js +++ b/app/assets/javascripts/discourse/initializers/keyboard_shortcuts.js @@ -3,6 +3,6 @@ /** Initialize Global Keyboard Shortcuts **/ -Discourse.addInitializer(function(){ +Discourse.addInitializer(function() { Discourse.KeyboardShortcuts.bindEvents(Mousetrap); -}) +});