Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebeasi committed Jun 24, 2016
1 parent 3711457 commit bca671b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions flexmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
return this.each(function () {
var $this = $(this),
$items = $this.find('> li'),
$self = $this,
$firstItem = $items.first(),
$lastItem = $items.last(),
numItems = $this.find('li').length,
Expand All @@ -85,11 +84,10 @@
return result;
}
if (needsMenu($lastItem) && numItems > s.threshold && !s.undo && $this.is(':visible')) {
var $popup = $('<ul class="flexMenu-popup" style="display:none;' + ((s.popupAbsolute) ? ' position: absolute;' : '') + '"></ul>'),
// Move all list items after the first to this new popup ul
firstItemOffset = $firstItem.offset().top;
var $popup = $('<ul class="flexMenu-popup" style="display:none;' + ((s.popupAbsolute) ? ' position: absolute;' : '') + '"></ul>');
// Add class if popupClass option is set
$popup.addClass(s.popupClass);
// Move all list items after the first to this new popup ul
for (i = numItems; i > 1; i--) {
// Find all of the list items that have been pushed below the first item. Put those items into the popup menu. Put one additional item into the popup menu to cover situations where the last item is shorter than the "more" text.
$lastChild = $this.find('> li:last-child');
Expand Down
2 changes: 1 addition & 1 deletion flexmenu.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bca671b

Please sign in to comment.