Created
November 15, 2016 23:11
-
-
Save Venegrad/d3358efd123a3e3d7548113159c518a3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$(document).click(function (event) { | |
if (!$(event.target).closest(".selector").length) { | |
// what event | |
} | |
event.stopPropagation(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment