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

Commit e3ae4ab

Browse files
author
Florent Delayen
committed
Code style changes
1 parent 50175c3 commit e3ae4ab

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

flexmenu.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
'showOnHover' : true, // [boolean] Should we we show the menu on hover? If not, we'll require a click. If we're on a touch device - or if Modernizr is not available - we'll ignore this setting and only show the menu on click. The reason for this is that touch devices emulate hover events in unpredictable ways, causing some taps to do nothing.
4848
'popupAbsolute' : true, // [boolean] Should we absolutely position the popup? Usually this is a good idea. That way, the popup can appear over other content and spill outside a parent that has overflow: hidden set. If you want to do something different from this in CSS, just set this option to false.
4949
'popupClass' : '', // [string] If this is set, this class will be added to the popup
50-
'undo' : false // [boolean] Move the list items back to where they were before, and remove the "View More" link.
50+
'undo' : false // [boolean] Move the list items back to where they were before, and remove the "View More" link.
5151
}, options);
5252
this.options = s; // Set options on object
5353
checkFlexObject = $.inArray(this, flexObjects); // Checks if this object is already in the flexObjects array
@@ -83,9 +83,7 @@
8383
// Move all list items after the first to this new popup ul
8484
firstItemOffset = $firstItem.offset().top;
8585
// Add class if popupClass option is set
86-
if(s.popupClass != '') {
87-
$popup.addClass(s.popupClass);
88-
}
86+
$popup.addClass(s.popupClass);
8987
for (i = numItems; i > 1; i--) {
9088
// 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.
9189
$lastChild = $this.find('> li:last-child');

0 commit comments

Comments
 (0)