Last active
August 29, 2015 14:02
-
-
Save danielbouman/d69030dd03cacd52ba67 to your computer and use it in GitHub Desktop.
Aanpassing WDHMN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Huidig (regel 36 - 44): | |
$(document).on('click', function(e){ | |
if( $(e.target).closest(menu).length > 0 || $(e.target).closest(menuToggle).length > 0 ) { | |
return false; | |
} | |
else { | |
rowOffcanvas.removeClass("active"); | |
menuToggle.removeClass("active"); | |
} | |
}); | |
// Vervangen door: | |
$(document).on('click', function(e){ | |
if( !$(e.target).closest(menu).length && !$(e.target).closest(menuToggle).length) { | |
rowOffcanvas.removeClass("active"); | |
menuToggle.removeClass("active"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment