/*! jQuery special event Click-that-is-not-a-text-selection - v0.1.0 - 2013-01-22 * https://github.com/FGRibreau/jquery-clickthatisnotatextselection * Copyright (c) 2013 ; Licensed MIT, GPL */ (function(e){function t(){if(document.getSelection||window.getSelection){var e=document.getSelection?document.getSelection():window.getSelection();return e.type==="Range"}var t=document.selection&&document.selection.createRange();return t.text?t.text.length>0:!0}function n(e){return function(){t()||e()}}e.event.special.clickThatIsNotATextSelection={add:function(t){e(this).on("click.ctinats"+t.guid,n(t.handler))},remove:function(t){e(this).off("click.ctinats"+t.guid)}}})(jQuery);