Skip to content

Commit

Permalink
General cleanup, seems like over kill creating a variable which is on…
Browse files Browse the repository at this point in the history
…ly used once.
  • Loading branch information
baphled committed May 12, 2010
1 parent ad81ef4 commit d7bd735
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions public/javascripts/item_hover.js
@@ -1,10 +1,9 @@
$(document).ready(function() {

var hoverItem = function() {
$classArray = $(this).attr('id');
$sidebarPostfix = $('div#sidebar > ul').attr('id').split('_');
$hover_class = 'li#' + $classArray + '_' + $sidebarPostfix[1];

$hover_class = 'li#' + $(this).attr('id') + '_' + $sidebarPostfix[1];
$($hover_class).toggle();
};

Expand Down

0 comments on commit d7bd735

Please sign in to comment.