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

Commit bca671b

Browse files
committed
Remove unused variables
1 parent 3711457 commit bca671b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Diff for: flexmenu.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
return this.each(function () {
6666
var $this = $(this),
6767
$items = $this.find('> li'),
68-
$self = $this,
6968
$firstItem = $items.first(),
7069
$lastItem = $items.last(),
7170
numItems = $this.find('li').length,
@@ -85,11 +84,10 @@
8584
return result;
8685
}
8786
if (needsMenu($lastItem) && numItems > s.threshold && !s.undo && $this.is(':visible')) {
88-
var $popup = $('<ul class="flexMenu-popup" style="display:none;' + ((s.popupAbsolute) ? ' position: absolute;' : '') + '"></ul>'),
89-
// Move all list items after the first to this new popup ul
90-
firstItemOffset = $firstItem.offset().top;
87+
var $popup = $('<ul class="flexMenu-popup" style="display:none;' + ((s.popupAbsolute) ? ' position: absolute;' : '') + '"></ul>');
9188
// Add class if popupClass option is set
9289
$popup.addClass(s.popupClass);
90+
// Move all list items after the first to this new popup ul
9391
for (i = numItems; i > 1; i--) {
9492
// 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.
9593
$lastChild = $this.find('> li:last-child');

Diff for: flexmenu.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)