rem: if (sElementId) {  /** * The type of the slider (horiz, vert, region) * @type string */ this.type = sType;  this.init(sElementId, sGroup, true);  this.logger = new YAHOO.widget.LogWriter(this.toString());  var self = this;  /** * a YAHOO.widget.SliderThumb instance that we will use to * reposition the thumb when the background is clicked * * @type Slider */ this.thumb = oThumb;   oThumb.onChange = function() { self.onThumbChange(); };   /** * Overrides the isTarget property in YAHOO.util.DragDrop * @private */ this.isTarget = false;  /** * Flag that determines if the thumb will animate when moved * @type boolean */ this.animate = YAHOO.widget.Slider.ANIM_AVAIL;  /** * Set to false to disable a background click thumb move */ this.backgroundEnabled = true;  /** * Adjustment factor for tick animation, the more ticks, the * faster the animation (by default) * * @type int */ this.tickPause = 40; if (oThumb._isHoriz && oThumb.xTicks && oThumb.xTicks.length) { this.tickPause = Math.round(360 / oThumb.xTicks.length); } else if (oThumb.yTicks && oThumb.yTicks.length) { this.tickPause = Math.round(360 / oThumb.yTicks.length); }  this.logger.log("tickPause: " + this.tickPause);   oThumb.onMouseDown = function () { return self.focus(); };    oThumb.onMouseUp = function() { self.thumbMouseUp(); }; oThumb.onDrag = function() { self.fireEvents(); }; oThumb.onAvailable = function() { return self.setStartSliderState(); }; } 
add: if (sElementId) { this.init(sElementId, sGroup, true); this.initSlider(sType); this.initThumb(oThumb); } 
context: YAHOO.widget.Slider = function(sElementId, sGroup, oThumb, sType) {	if (sElementId) {        /**         * The type of the slider (horiz, vert, region)         * @type string         */        this.type = sType;		this.init(sElementId, sGroup, true);        this.logger = new YAHOO.widget.LogWriter(this.toString());		var self = this;		/**		 * a YAHOO.widget.SliderThumb instance that we will use to		 * reposition the thumb when the background is clicked		 *		 * @type Slider		 */		this.thumb = oThumb;		// add handler for the handle onchange event		oThumb.onChange = function() {			self.onThumbChange();		};		/**		 * Overrides the isTarget property in YAHOO.util.DragDrop		 * @private		 */		this.isTarget = false;		/**		 * Flag that determines if the thumb will animate when moved		 * @type boolean		 */		this.animate = YAHOO.widget.Slider.ANIM_AVAIL;        /**         * Set to false to disable a background click thumb move         */        this.backgroundEnabled = true;		/**		 * Adjustment factor for tick animation, the more ticks, the		 * faster the animation (by default)		 *		 * @type int		 */		this.tickPause = 40;		if (oThumb._isHoriz && oThumb.xTicks && oThumb.xTicks.length) {			this.tickPause = Math.round(360 / oThumb.xTicks.length);		} else if (oThumb.yTicks && oThumb.yTicks.length) {			this.tickPause = Math.round(360 / oThumb.yTicks.length);		}        this.logger.log("tickPause: " + this.tickPause);		// delegate thumb methods		oThumb.onMouseDown = function () { return self.focus(); };		//oThumb.b4MouseDown = function () { return self.b4MouseDown(); };		// oThumb.lock = function() { self.lock(); };		// oThumb.unlock = function() { self.unlock(); };		oThumb.onMouseUp = function() { self.thumbMouseUp(); };		oThumb.onDrag = function() { self.fireEvents(); };		oThumb.onAvailable = function() { return self.setStartSliderState(); };	}};
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/slider-debug.js/buggy/www/resources/yui/slider/slider-debug.js