jquery-outside-events

With jQuery outside events you can bind to an event that will be triggered only when a specific 'originating' event occurs outside the element in question.

jQueryoutside

https://github.com/cowboy/jquery-outside-events