code: function( event ) {
              event = $.getEvent( event );
  
              if ( event.preventDefault ) {
                  $.cancelEvent = function( event ){
                      // W3C for preventing default
                      event.preventDefault();
                  };
              } else {
                  $.cancelEvent = function( event ){
                      event = $.getEvent( event );
                      // legacy for preventing default
                      event.cancel = true;
                      // IE for preventing default
                      event.returnValue = false;
                  };
              }
              $.cancelEvent( event );
          }
docs: Cancels the default browser behavior had the event propagated all
  the way up the DOM to the window object.
  @function
  @param {Event} [event]