function DragDropTouch() {
            this._lastClick = 0;
            // enforce singleton pattern
            if (DragDropTouch._instance) {
                throw 'DragDropTouch instance already created.';
            }
            // detect passive event support
            // https://github.com/Modernizr/Modernizr/issues/1894
            var supportsPassive = false;
            document.addEventListener('test', null, {
                get passive() {
                    supportsPassive = true;
                    return true;
                }
            });
            // listen to touch events
            if ('ontouchstart' in document) {
                var d = document,
                    ts = this._touchstart.bind(this),
                    tm = this._touchmove.bind(this),
                    te = this._touchend.bind(this),
                    opt = supportsPassive ? { passive: false, capture: false } : false;
                d.addEventListener('touchstart', ts, opt);
                d.addEventListener('touchmove', tm, opt);
                d.addEventListener('touchend', te);
                d.addEventListener('touchcancel', te);
            }
        }
/**
         * Initializes the single instance of the @see:DragDropTouch class.
         */
Initializes the single instance of the @see:DragDropTouch class.
Initializes the single instance of the @see : DragDropTouch class .
function DragDropTouch() {
            this._lastClick = 0;
            if (DragDropTouch._instance) {
                throw 'DragDropTouch instance already created.';
            }
            var supportsPassive = false;
            document.addEventListener('test', null, {
                get passive() {
                    supportsPassive = true;
                    return true;
                }
            });
            if ('ontouchstart' in document) {
                var d = document,
                    ts = this._touchstart.bind(this),
                    tm = this._touchmove.bind(this),
                    te = this._touchend.bind(this),
                    opt = supportsPassive ? { passive: false, capture: false } : false;
                d.addEventListener('touchstart', ts, opt);
                d.addEventListener('touchmove', tm, opt);
                d.addEventListener('touchend', te);
                d.addEventListener('touchcancel', te);
            }
        }
function DragDropTouch ( ) { this . _lastClick = 0 ; if ( DragDropTouch . _instance ) { throw 'DragDropTouch instance already created.' ; } var supportsPassive = false ; document . addEventListener ( 'test' , null , { get passive ( ) { supportsPassive = true ; return true ; } } ) ; if ( 'ontouchstart' in document ) { var d = document , ts = this . _touchstart . bind ( this ) , tm = this . _touchmove . bind ( this ) , te = this . _touchend . bind ( this ) , opt = supportsPassive ? { passive : false , capture : false } : false ; d . addEventListener ( 'touchstart' , ts , opt ) ; d . addEventListener ( 'touchmove' , tm , opt ) ; d . addEventListener ( 'touchend' , te ) ; d . addEventListener ( 'touchcancel' , te ) ; } }
Initializes the single instance of the @see:DragDropTouch class.
Initializes the single instance of the @see : DragDropTouch class .
// enforce singleton pattern // detect passive event support // https://github.com/Modernizr/Modernizr/issues/1894 // listen to touch events