/**
 * Contains some boilerplate code for event handling
 * 
 */
(function($) {
    $.eventsugar = {
            /**
             * Checks if a click is an attempt to open a link in a new tab
             * @param event
             * @returns {Boolean}
             */
            isAttemptToOpenInAnotherWindow: function(event) {
                return 2 === event.which || event.metaKey || event.ctrlKey || event.shiftKey;
        }
    };
})(jQuery);