src/aria/touch/widgets/Button.js
function (event) {
            if (event.type == "tapstart") {
                this.timerId = ariaCoreTimer.addCallback({
                    fn : this._delayedHighlightCB,
                    scope : this,
                    delay : this._timeDelay
                });
            }
            if (event.type == "tapcancel" || event.type == "tap") {
                if (this.timerId) {
                    ariaCoreTimer.cancelCallback(this.timerId);
                    this.timerId = null;
                }

                if (event.type == "tapcancel" || (event.type == "tap" && !this._isLink)) {
                    this._classList.remove("touchLibButtonPressed");
                }
            }
        }
function (event) {
            if (event.type == "tapstart") {
                this.timerId = ariaCoreTimer.addCallback({
                    fn : this._delayedHighlightCB,
                    scope : this,
                    delay : this._timeDelay
                });
            }
            if (event.type == "tapcancel" || event.type == "tap") {
                if (this.timerId) {
                    ariaCoreTimer.cancelCallback(this.timerId);
                    this.timerId = null;
                }

                if (event.type == "tapcancel" || (event.type == "tap" && !this._isLink)) {
                    this._classList.remove("touchLibButtonPressed");
                }
            }
        }
function ( event ) { if ( event . type == "tapstart" ) { this . timerId = ariaCoreTimer . addCallback ( { fn : this . _delayedHighlightCB , scope : this , delay : this . _timeDelay } ) ; } if ( event . type == "tapcancel" || event . type == "tap" ) { if ( this . timerId ) { ariaCoreTimer . cancelCallback ( this . timerId ) ; this . timerId = null ; } if ( event . type == "tapcancel" || ( event . type == "tap" && ! this . _isLink ) ) { this . _classList . remove ( "touchLibButtonPressed" ) ; } } }
Manage the touch events defined by the widget itself
@param {HTMLEvent} event Native event
Manage the touch events defined by the widget itself