public/javascripts/yui/slider/slider.js
function(t) {

        var self = this;

        /**
         * A YAHOO.widget.SliderThumb instance that we will use to 
         * reposition the thumb when the background is clicked
         * @property thumb
         * @type YAHOO.widget.SliderThumb
         */
        this.thumb = t;

        t.cacheBetweenDrags = true;

        if (t._isHoriz && t.xTicks && t.xTicks.length) {
            this.tickPause = Math.round(360 / t.xTicks.length);
        } else if (t.yTicks && t.yTicks.length) {
            this.tickPause = Math.round(360 / t.yTicks.length);
        }


        // delegate thumb methods
        t.onAvailable = function() { 
                return self.setStartSliderState(); 
            };
        t.onMouseDown = function () { 
                self._mouseDown = true;
                return self.focus(); 
            };
        t.startDrag = function() { 
                self._slideStart(); 
            };
        t.onDrag = function() { 
                self.fireEvents(true); 
            };
        t.onMouseUp = function() { 
                self.thumbMouseUp(); 
            };

    }
function(t) {

        var self = this;

        /**
         * A YAHOO.widget.SliderThumb instance that we will use to 
         * reposition the thumb when the background is clicked
         * @property thumb
         * @type YAHOO.widget.SliderThumb
         */
        this.thumb = t;

        t.cacheBetweenDrags = true;

        if (t._isHoriz && t.xTicks && t.xTicks.length) {
            this.tickPause = Math.round(360 / t.xTicks.length);
        } else if (t.yTicks && t.yTicks.length) {
            this.tickPause = Math.round(360 / t.yTicks.length);
        }


        // delegate thumb methods
        t.onAvailable = function() { 
                return self.setStartSliderState(); 
            };
        t.onMouseDown = function () { 
                self._mouseDown = true;
                return self.focus(); 
            };
        t.startDrag = function() { 
                self._slideStart(); 
            };
        t.onDrag = function() { 
                self.fireEvents(true); 
            };
        t.onMouseUp = function() { 
                self.thumbMouseUp(); 
            };

    }
function ( t ) { var self = this ; /**
         * A YAHOO.widget.SliderThumb instance that we will use to 
         * reposition the thumb when the background is clicked
         * @property thumb
         * @type YAHOO.widget.SliderThumb
         */ this . thumb = t ; t . cacheBetweenDrags = true ; if ( t . _isHoriz && t . xTicks && t . xTicks . length ) { this . tickPause = Math . round ( 360 / t . xTicks . length ) ; } else if ( t . yTicks && t . yTicks . length ) { this . tickPause = Math . round ( 360 / t . yTicks . length ) ; } // delegate thumb methods t . onAvailable = function ( ) { return self . setStartSliderState ( ) ; } ; t . onMouseDown = function ( ) { self . _mouseDown = true ; return self . focus ( ) ; } ; t . startDrag = function ( ) { self . _slideStart ( ) ; } ; t . onDrag = function ( ) { self . fireEvents ( true ) ; } ; t . onMouseUp = function ( ) { self . thumbMouseUp ( ) ; } ; }
Initializes the slider's thumb. Executed in the constructor.
@method initThumb
@param {YAHOO.widget.SliderThumb} t the slider thumb
Initializes the slider s thumb . Executed in the constructor .