Skip to content

Commit

Permalink
bugfix with multiple menus
Browse files Browse the repository at this point in the history
  • Loading branch information
FrDH committed Nov 17, 2014
1 parent 7811273 commit 34eb2e7
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jQuery.mmenu",
"main": "src/js/jquery.mmenu.min.js",
"version": "4.7.1",
"version": "4.7.2",
"homepage": "http://mmenu.frebsite.nl/",
"authors": [
"Fred Heusschen <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion mmenu.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mmenu",
"version": "4.7.1",
"version": "4.7.2",
"title": "jQuery mmenu",
"description": "The best jQuery plugin for app look-alike on- and off-canvas menus with sliding submenus for your website and webapp.",
"keywords": [
Expand Down
14 changes: 7 additions & 7 deletions src/js/addons/jquery.mmenu.offcanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
}


glbl.$allMenus = ( glbl.$allMenus || $() ).add( this.$menu );


// Setup the menu
this.vars.opened = false;

Expand Down Expand Up @@ -99,7 +102,6 @@
_e.add( 'opening opened closing closed setPage' );

glbl = $[ _PLUGIN_ ].glbl;
glbl.$allMenus = ( glbl.$allMenus || $() ).add( this.$menu );
},

// _clickAnchor: prevents default behavior when clicking an anchor
Expand Down Expand Up @@ -350,12 +352,10 @@
$[ _PLUGIN_ ].prototype[ _ADDON_ + '_initBlocker' ] = function()
{
var that = this;

glbl.$blck = $( '<div id="' + _c.blocker + '" class="' + _c.slideout + '" />' )
var $blck = $( '<div id="' + _c.blocker + '" class="' + _c.slideout + '" />' )
.appendTo( glbl.$body );

glbl.$blck
.off( _e.touchstart )

$blck
.on( _e.touchstart,
function( e )
{
Expand All @@ -370,7 +370,7 @@
e.preventDefault();
if ( !glbl.$html.hasClass( _c.modal ) )
{
that.close();
glbl.$allMenus.trigger( _e.close );
}
}
);
Expand Down
2 changes: 1 addition & 1 deletion src/js/addons/jquery.mmenu.offcanvas.min.js

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

Loading

0 comments on commit 34eb2e7

Please sign in to comment.