dist/garnish.js
function(ev) {
            // ignore right clicks
            if (ev.which !== Garnish.PRIMARY_CLICK) {
                return;
            }

            // Enfore the filter
            if (this.settings.filter && !$(ev.target).is(this.settings.filter)) {
                return;
            }

            var $item = $($.data(ev.currentTarget, 'select-item'));

            // was this a click?
            if (
                !this._actAsCheckbox(ev) && !ev.shiftKey &&
                ev.currentTarget === this.mousedownTarget
            ) {
                // If this is already selected, wait a moment to see if this is a double click before making any rash decisions
                if (this.isSelected($item)) {
                    this.clearMouseUpTimeout();

                    this.mouseUpTimeout = setTimeout($.proxy(function() {
                        this.deselectOthers($item);
                    }, this), 300);
                }
                else {
                    this.deselectAll();
                    this.selectItem($item, true, true);
                }
            }
        }
function(ev) {
            // ignore right clicks
            if (ev.which !== Garnish.PRIMARY_CLICK) {
                return;
            }

            // Enfore the filter
            if (this.settings.filter && !$(ev.target).is(this.settings.filter)) {
                return;
            }

            var $item = $($.data(ev.currentTarget, 'select-item'));

            // was this a click?
            if (
                !this._actAsCheckbox(ev) && !ev.shiftKey &&
                ev.currentTarget === this.mousedownTarget
            ) {
                // If this is already selected, wait a moment to see if this is a double click before making any rash decisions
                if (this.isSelected($item)) {
                    this.clearMouseUpTimeout();

                    this.mouseUpTimeout = setTimeout($.proxy(function() {
                        this.deselectOthers($item);
                    }, this), 300);
                }
                else {
                    this.deselectAll();
                    this.selectItem($item, true, true);
                }
            }
        }
function ( ev ) { // ignore right clicks if ( ev . which !== Garnish . PRIMARY_CLICK ) { return ; } // Enfore the filter if ( this . settings . filter && ! $ ( ev . target ) . is ( this . settings . filter ) ) { return ; } var $item = $ ( $ . data ( ev . currentTarget , 'select-item' ) ) ; // was this a click? if ( ! this . _actAsCheckbox ( ev ) && ! ev . shiftKey && ev . currentTarget === this . mousedownTarget ) { // If this is already selected, wait a moment to see if this is a double click before making any rash decisions if ( this . isSelected ( $item ) ) { this . clearMouseUpTimeout ( ) ; this . mouseUpTimeout = setTimeout ( $ . proxy ( function ( ) { this . deselectOthers ( $item ) ; } , this ) , 300 ) ; } else { this . deselectAll ( ) ; this . selectItem ( $item , true , true ) ; } } }
On Mouse Up
On Mouse Up