Permalink
Browse files

Update jquery.slimmenu.js

  • Loading branch information...
Igor
Igor committed Nov 12, 2014
1 parent 14eed61 commit 70d5c15bdbefeb2bad8f96d6387719c88b84d1e6
Showing with 8 additions and 1 deletion.
  1. +8 −1 jquery.slimmenu.js
View
@@ -17,6 +17,8 @@
indentChildren: false,
childrenIndenter: '  '
};
var oldWindowWidth = 0;
function Plugin( element, options )
{
@@ -75,6 +77,11 @@
$options = event.data.options,
$menu = $(event.data.el),
$menu_collapser = $('body').find('.menu-collapser');
if (oldWindowWidth == $window.width()) {
return;
}
oldWindowWidth = $window.width();
$menu.find('li').each(function()
{
@@ -152,4 +159,4 @@
});
};
})( jQuery, window, document );
})( jQuery, window, document );

0 comments on commit 70d5c15

Please sign in to comment.