public/lib/jquery.sly.js
function stopDefault(event, noBubbles) {
        event = event || w.event;

        if (event.preventDefault) {
            event.preventDefault();
        } else {
            event.returnValue = false;
        }

        if (noBubbles) {
            if (event.stopPropagation) {
                event.stopPropagation();
            } else {
                event.cancelBubble = true;
            }
        }
    }
function stopDefault(event, noBubbles) {
        event = event || w.event;

        if (event.preventDefault) {
            event.preventDefault();
        } else {
            event.returnValue = false;
        }

        if (noBubbles) {
            if (event.stopPropagation) {
                event.stopPropagation();
            } else {
                event.cancelBubble = true;
            }
        }
    }
function stopDefault ( event , noBubbles ) { event = event || w . event ; if ( event . preventDefault ) { event . preventDefault ( ) ; } else { event . returnValue = false ; } if ( noBubbles ) { if ( event . stopPropagation ) { event . stopPropagation ( ) ; } else { event . cancelBubble = true ; } } }
Crossbrowser reliable way to stop default event action.

@param {Event} event     Event object.
@param {Bool}  noBubbles Cancel event bubbling.

@return {Void}
Crossbrowser reliable way to stop default event action .