Results 4 comments of Matthew Gifford

@timkelty @tylersticka Why not just do this? $("#menu").on("click", function(e) { e.preventDefault(); menu.hide(); });

@timkelty I should read a little closer. So, this is ugly, but it works. $("#content").on("click", function(e) { e.preventDefault(); if (e.target.id !== "menu-trigger") { menu.hide(); } });

@timkelty This assumes you've wrapped your content in a div and that the menu div is outside that content div.