diff --git a/js/jquery.dlmenu.js b/js/jquery.dlmenu.js index dec44e4..9bf07c8 100755 --- a/js/jquery.dlmenu.js +++ b/js/jquery.dlmenu.js @@ -230,7 +230,7 @@ _openMenu : function() { var self = this; // clicking somewhere else makes the menu close - $body.off( 'click' ).on( 'click.dlmenu', function() { + $('body').on( 'click.dlmenu', function() { self._closeMenu() ; } ); this.$menu.addClass( 'dl-menuopen dl-menu-toggle' ).on( this.transEndEventName, function() { @@ -283,4 +283,4 @@ return this; }; -} )( jQuery, window ); \ No newline at end of file +} )( jQuery, window );