src/cm/media/js/lib/yui/yui_3.10.3/build/slider-base/slider-base-coverage.js
author gibus
Tue, 16 Jul 2013 14:29:46 +0200
changeset 525 89ef5ed3c48b
permissions -rw-r--r--
Upgrades to yui 3.10.3

/*
YUI 3.10.3 (build 2fb5187)
Copyright 2013 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/slider-base/slider-base.js']) {
   __coverage__['build/slider-base/slider-base.js'] = {"path":"build/slider-base/slider-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0,0,0,0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":42}}},"2":{"name":"SliderBase","line":25,"loc":{"start":{"line":25,"column":0},"end":{"line":25,"column":22}}},"3":{"name":"(anonymous_3)","line":39,"loc":{"start":{"line":39,"column":18},"end":{"line":39,"column":30}}},"4":{"name":"(anonymous_4)","line":100,"loc":{"start":{"line":100,"column":15},"end":{"line":100,"column":27}}},"5":{"name":"(anonymous_5)","line":139,"loc":{"start":{"line":139,"column":16},"end":{"line":139,"column":28}}},"6":{"name":"(anonymous_6)","line":158,"loc":{"start":{"line":158,"column":22},"end":{"line":158,"column":42}}},"7":{"name":"(anonymous_7)","line":170,"loc":{"start":{"line":170,"column":17},"end":{"line":170,"column":29}}},"8":{"name":"(anonymous_8)","line":192,"loc":{"start":{"line":192,"column":20},"end":{"line":192,"column":31}}},"9":{"name":"(anonymous_9)","line":204,"loc":{"start":{"line":204,"column":13},"end":{"line":204,"column":25}}},"10":{"name":"(anonymous_10)","line":239,"loc":{"start":{"line":239,"column":17},"end":{"line":239,"column":27}}},"11":{"name":"(anonymous_11)","line":249,"loc":{"start":{"line":249,"column":17},"end":{"line":249,"column":27}}},"12":{"name":"(anonymous_12)","line":259,"loc":{"start":{"line":259,"column":17},"end":{"line":259,"column":27}}},"13":{"name":"(anonymous_13)","line":269,"loc":{"start":{"line":269,"column":17},"end":{"line":269,"column":27}}},"14":{"name":"(anonymous_14)","line":279,"loc":{"start":{"line":279,"column":16},"end":{"line":279,"column":27}}},"15":{"name":"(anonymous_15)","line":289,"loc":{"start":{"line":289,"column":16},"end":{"line":289,"column":27}}},"16":{"name":"(anonymous_16)","line":303,"loc":{"start":{"line":303,"column":22},"end":{"line":303,"column":34}}},"17":{"name":"(anonymous_17)","line":336,"loc":{"start":{"line":336,"column":22},"end":{"line":336,"column":34}}},"18":{"name":"(anonymous_18)","line":357,"loc":{"start":{"line":357,"column":26},"end":{"line":357,"column":38}}},"19":{"name":"(anonymous_19)","line":381,"loc":{"start":{"line":381,"column":18},"end":{"line":381,"column":30}}},"20":{"name":"(anonymous_20)","line":418,"loc":{"start":{"line":418,"column":21},"end":{"line":418,"column":33}}},"21":{"name":"(anonymous_21)","line":428,"loc":{"start":{"line":428,"column":18},"end":{"line":428,"column":47}}},"22":{"name":"(anonymous_22)","line":447,"loc":{"start":{"line":447,"column":18},"end":{"line":447,"column":33}}},"23":{"name":"(anonymous_23)","line":475,"loc":{"start":{"line":475,"column":16},"end":{"line":475,"column":31}}},"24":{"name":"(anonymous_24)","line":493,"loc":{"start":{"line":493,"column":19},"end":{"line":493,"column":34}}},"25":{"name":"(anonymous_25)","line":521,"loc":{"start":{"line":521,"column":26},"end":{"line":521,"column":41}}},"26":{"name":"(anonymous_26)","line":533,"loc":{"start":{"line":533,"column":24},"end":{"line":533,"column":39}}},"27":{"name":"(anonymous_27)","line":546,"loc":{"start":{"line":546,"column":13},"end":{"line":546,"column":25}}},"28":{"name":"(anonymous_28)","line":569,"loc":{"start":{"line":569,"column":24},"end":{"line":569,"column":36}}},"29":{"name":"(anonymous_29)","line":580,"loc":{"start":{"line":580,"column":15},"end":{"line":580,"column":28}}},"30":{"name":"(anonymous_30)","line":599,"loc":{"start":{"line":599,"column":16},"end":{"line":599,"column":31}}},"31":{"name":"(anonymous_31)","line":619,"loc":{"start":{"line":619,"column":19},"end":{"line":619,"column":31}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":760,"column":87}},"2":{"start":{"line":11,"column":0},"end":{"line":11,"column":46}},"3":{"start":{"line":25,"column":0},"end":{"line":27,"column":1}},"4":{"start":{"line":26,"column":4},"end":{"line":26,"column":63}},"5":{"start":{"line":29,"column":0},"end":{"line":757,"column":3}},"6":{"start":{"line":50,"column":8},"end":{"line":50,"column":39}},"7":{"start":{"line":63,"column":8},"end":{"line":68,"column":10}},"8":{"start":{"line":88,"column":8},"end":{"line":91,"column":12}},"9":{"start":{"line":101,"column":8},"end":{"line":101,"column":50}},"10":{"start":{"line":110,"column":8},"end":{"line":110,"column":38}},"11":{"start":{"line":112,"column":8},"end":{"line":112,"column":54}},"12":{"start":{"line":121,"column":8},"end":{"line":121,"column":40}},"13":{"start":{"line":123,"column":8},"end":{"line":123,"column":44}},"14":{"start":{"line":125,"column":8},"end":{"line":125,"column":44}},"15":{"start":{"line":128,"column":8},"end":{"line":128,"column":62}},"16":{"start":{"line":140,"column":8},"end":{"line":141,"column":80}},"17":{"start":{"line":143,"column":8},"end":{"line":148,"column":18}},"18":{"start":{"line":159,"column":8},"end":{"line":159,"column":52}},"19":{"start":{"line":171,"column":8},"end":{"line":171,"column":29}},"20":{"start":{"line":173,"column":8},"end":{"line":173,"column":46}},"21":{"start":{"line":175,"column":8},"end":{"line":183,"column":18}},"22":{"start":{"line":193,"column":8},"end":{"line":193,"column":27}},"23":{"start":{"line":207,"column":8},"end":{"line":215,"column":60}},"24":{"start":{"line":217,"column":8},"end":{"line":217,"column":72}},"25":{"start":{"line":218,"column":8},"end":{"line":218,"column":76}},"26":{"start":{"line":219,"column":8},"end":{"line":219,"column":84}},"27":{"start":{"line":222,"column":8},"end":{"line":222,"column":57}},"28":{"start":{"line":224,"column":8},"end":{"line":224,"column":28}},"29":{"start":{"line":226,"column":8},"end":{"line":226,"column":31}},"30":{"start":{"line":228,"column":8},"end":{"line":228,"column":66}},"31":{"start":{"line":229,"column":8},"end":{"line":229,"column":64}},"32":{"start":{"line":240,"column":8},"end":{"line":240,"column":71}},"33":{"start":{"line":250,"column":8},"end":{"line":250,"column":71}},"34":{"start":{"line":260,"column":8},"end":{"line":260,"column":71}},"35":{"start":{"line":270,"column":8},"end":{"line":270,"column":71}},"36":{"start":{"line":280,"column":8},"end":{"line":280,"column":43}},"37":{"start":{"line":290,"column":8},"end":{"line":290,"column":43}},"38":{"start":{"line":304,"column":8},"end":{"line":304,"column":27}},"39":{"start":{"line":305,"column":8},"end":{"line":326,"column":9}},"40":{"start":{"line":306,"column":12},"end":{"line":325,"column":13}},"41":{"start":{"line":308,"column":20},"end":{"line":308,"column":38}},"42":{"start":{"line":309,"column":20},"end":{"line":309,"column":26}},"43":{"start":{"line":311,"column":20},"end":{"line":311,"column":38}},"44":{"start":{"line":312,"column":20},"end":{"line":312,"column":26}},"45":{"start":{"line":314,"column":20},"end":{"line":314,"column":37}},"46":{"start":{"line":315,"column":20},"end":{"line":315,"column":26}},"47":{"start":{"line":317,"column":20},"end":{"line":317,"column":37}},"48":{"start":{"line":318,"column":20},"end":{"line":318,"column":26}},"49":{"start":{"line":320,"column":20},"end":{"line":320,"column":38}},"50":{"start":{"line":321,"column":20},"end":{"line":321,"column":26}},"51":{"start":{"line":323,"column":20},"end":{"line":323,"column":38}},"52":{"start":{"line":324,"column":20},"end":{"line":324,"column":26}},"53":{"start":{"line":337,"column":8},"end":{"line":337,"column":27}},"54":{"start":{"line":338,"column":8},"end":{"line":347,"column":9}},"55":{"start":{"line":339,"column":12},"end":{"line":346,"column":13}},"56":{"start":{"line":341,"column":20},"end":{"line":341,"column":38}},"57":{"start":{"line":342,"column":20},"end":{"line":342,"column":26}},"58":{"start":{"line":344,"column":20},"end":{"line":344,"column":38}},"59":{"start":{"line":345,"column":20},"end":{"line":345,"column":26}},"60":{"start":{"line":358,"column":8},"end":{"line":358,"column":27}},"61":{"start":{"line":359,"column":8},"end":{"line":368,"column":9}},"62":{"start":{"line":360,"column":12},"end":{"line":367,"column":13}},"63":{"start":{"line":362,"column":20},"end":{"line":362,"column":37}},"64":{"start":{"line":363,"column":20},"end":{"line":363,"column":26}},"65":{"start":{"line":365,"column":20},"end":{"line":365,"column":37}},"66":{"start":{"line":366,"column":20},"end":{"line":366,"column":26}},"67":{"start":{"line":382,"column":8},"end":{"line":382,"column":46}},"68":{"start":{"line":385,"column":8},"end":{"line":385,"column":59}},"69":{"start":{"line":394,"column":8},"end":{"line":404,"column":12}},"70":{"start":{"line":407,"column":8},"end":{"line":407,"column":56}},"71":{"start":{"line":429,"column":8},"end":{"line":437,"column":9}},"72":{"start":{"line":430,"column":12},"end":{"line":430,"column":68}},"73":{"start":{"line":433,"column":12},"end":{"line":433,"column":38}},"74":{"start":{"line":434,"column":12},"end":{"line":434,"column":36}},"75":{"start":{"line":436,"column":12},"end":{"line":436,"column":46}},"76":{"start":{"line":462,"column":8},"end":{"line":465,"column":11}},"77":{"start":{"line":476,"column":8},"end":{"line":477,"column":69}},"78":{"start":{"line":479,"column":8},"end":{"line":483,"column":12}},"79":{"start":{"line":508,"column":8},"end":{"line":511,"column":11}},"80":{"start":{"line":522,"column":8},"end":{"line":522,"column":41}},"81":{"start":{"line":534,"column":8},"end":{"line":538,"column":9}},"82":{"start":{"line":535,"column":12},"end":{"line":535,"column":46}},"83":{"start":{"line":537,"column":12},"end":{"line":537,"column":26}},"84":{"start":{"line":547,"column":8},"end":{"line":547,"column":34}},"85":{"start":{"line":549,"column":8},"end":{"line":549,"column":34}},"86":{"start":{"line":554,"column":8},"end":{"line":554,"column":57}},"87":{"start":{"line":555,"column":8},"end":{"line":555,"column":57}},"88":{"start":{"line":557,"column":8},"end":{"line":557,"column":51}},"89":{"start":{"line":581,"column":8},"end":{"line":581,"column":37}},"90":{"start":{"line":583,"column":8},"end":{"line":583,"column":62}},"91":{"start":{"line":600,"column":8},"end":{"line":600,"column":37}},"92":{"start":{"line":602,"column":8},"end":{"line":603,"column":67}},"93":{"start":{"line":605,"column":8},"end":{"line":605,"column":63}},"94":{"start":{"line":620,"column":8},"end":{"line":634,"column":9}},"95":{"start":{"line":621,"column":12},"end":{"line":622,"column":37}},"96":{"start":{"line":626,"column":12},"end":{"line":628,"column":13}},"97":{"start":{"line":627,"column":16},"end":{"line":627,"column":75}},"98":{"start":{"line":631,"column":12},"end":{"line":632,"column":72}}},"branchMap":{"1":{"line":64,"type":"cond-expr","locations":[{"start":{"line":64,"column":45},"end":{"line":64,"column":53}},{"start":{"line":64,"column":56},"end":{"line":64,"column":63}}]},"2":{"line":65,"type":"cond-expr","locations":[{"start":{"line":65,"column":45},"end":{"line":65,"column":50}},{"start":{"line":65,"column":56},"end":{"line":65,"column":62}}]},"3":{"line":66,"type":"cond-expr","locations":[{"start":{"line":66,"column":45},"end":{"line":66,"column":53}},{"start":{"line":66,"column":56},"end":{"line":66,"column":63}}]},"4":{"line":67,"type":"cond-expr","locations":[{"start":{"line":67,"column":45},"end":{"line":67,"column":46}},{"start":{"line":67,"column":49},"end":{"line":67,"column":50}}]},"5":{"line":209,"type":"cond-expr","locations":[{"start":{"line":209,"column":35},"end":{"line":209,"column":42}},{"start":{"line":209,"column":45},"end":{"line":209,"column":53}}]},"6":{"line":305,"type":"if","locations":[{"start":{"line":305,"column":8},"end":{"line":305,"column":8}},{"start":{"line":305,"column":8},"end":{"line":305,"column":8}}]},"7":{"line":306,"type":"switch","locations":[{"start":{"line":307,"column":16},"end":{"line":309,"column":26}},{"start":{"line":310,"column":16},"end":{"line":312,"column":26}},{"start":{"line":313,"column":16},"end":{"line":315,"column":26}},{"start":{"line":316,"column":16},"end":{"line":318,"column":26}},{"start":{"line":319,"column":16},"end":{"line":321,"column":26}},{"start":{"line":322,"column":16},"end":{"line":324,"column":26}}]},"8":{"line":338,"type":"if","locations":[{"start":{"line":338,"column":8},"end":{"line":338,"column":8}},{"start":{"line":338,"column":8},"end":{"line":338,"column":8}}]},"9":{"line":339,"type":"switch","locations":[{"start":{"line":340,"column":16},"end":{"line":342,"column":26}},{"start":{"line":343,"column":16},"end":{"line":345,"column":26}}]},"10":{"line":359,"type":"if","locations":[{"start":{"line":359,"column":8},"end":{"line":359,"column":8}},{"start":{"line":359,"column":8},"end":{"line":359,"column":8}}]},"11":{"line":360,"type":"switch","locations":[{"start":{"line":361,"column":16},"end":{"line":363,"column":26}},{"start":{"line":364,"column":16},"end":{"line":366,"column":26}}]},"12":{"line":429,"type":"if","locations":[{"start":{"line":429,"column":8},"end":{"line":429,"column":8}},{"start":{"line":429,"column":8},"end":{"line":429,"column":8}}]},"13":{"line":433,"type":"binary-expr","locations":[{"start":{"line":433,"column":12},"end":{"line":433,"column":19}},{"start":{"line":433,"column":24},"end":{"line":433,"column":36}}]},"14":{"line":534,"type":"if","locations":[{"start":{"line":534,"column":8},"end":{"line":534,"column":8}},{"start":{"line":534,"column":8},"end":{"line":534,"column":8}}]},"15":{"line":583,"type":"cond-expr","locations":[{"start":{"line":583,"column":44},"end":{"line":583,"column":45}},{"start":{"line":583,"column":48},"end":{"line":583,"column":61}}]},"16":{"line":583,"type":"binary-expr","locations":[{"start":{"line":583,"column":17},"end":{"line":583,"column":26}},{"start":{"line":583,"column":30},"end":{"line":583,"column":39}}]},"17":{"line":603,"type":"binary-expr","locations":[{"start":{"line":603,"column":21},"end":{"line":603,"column":49}},{"start":{"line":603,"column":53},"end":{"line":603,"column":66}}]},"18":{"line":605,"type":"cond-expr","locations":[{"start":{"line":605,"column":30},"end":{"line":605,"column":44}},{"start":{"line":605,"column":49},"end":{"line":605,"column":62}}]},"19":{"line":620,"type":"if","locations":[{"start":{"line":620,"column":8},"end":{"line":620,"column":8}},{"start":{"line":620,"column":8},"end":{"line":620,"column":8}}]},"20":{"line":621,"type":"binary-expr","locations":[{"start":{"line":621,"column":23},"end":{"line":621,"column":41}},{"start":{"line":621,"column":45},"end":{"line":621,"column":50}}]},"21":{"line":626,"type":"if","locations":[{"start":{"line":626,"column":12},"end":{"line":626,"column":12}},{"start":{"line":626,"column":12},"end":{"line":626,"column":12}}]}},"code":["(function () { YUI.add('slider-base', function (Y, NAME) {","","/**"," * Create a sliding value range input visualized as a draggable thumb on a"," * background element."," * "," * @module slider"," * @submodule slider-base"," */","","var INVALID_VALUE = Y.Attribute.INVALID_VALUE;","","/**"," * Create a slider to represent an input control capable of representing a"," * series of intermediate states based on the position of the slider's thumb."," * These states are typically aligned to a value algorithm whereby the thumb"," * position corresponds to a given value. Sliders may be oriented vertically or"," * horizontally, based on the <code>axis</code> configuration."," *"," * @class SliderBase"," * @extends Widget"," * @param config {Object} Configuration object"," * @constructor"," */","function SliderBase() {","    SliderBase.superclass.constructor.apply( this, arguments );","}","","Y.SliderBase = Y.extend( SliderBase, Y.Widget, {","","    // Y.Slider prototype","","    /**","     * Construction logic executed during Slider instantiation.","     *","     * @method initializer","     * @protected","     */","    initializer : function () {","        /**","         * The configured axis, stored for fast lookup since it's a writeOnce","         * attribute.  This is for use by extension classes.  For","         * implementation code, use <code>get( &quot;axis&quot; )</code> for","         * authoritative source.  Never write to this property.","         *","         * @property axis","         * @type {String}","         * @protected","         */","        this.axis = this.get( 'axis' );","","        /**","         * Cached fast access map for DOM properties and attributes that","         * pertain to accessing dimensional or positioning information","         * according to the Slider's axis (e.g. &quot;height&quot; vs.","         * &quot;width&quot;).  Extension classes should add to this collection","         * for axis related strings if necessary.","         *","         * @property _key","         * @type {Object}","         * @protected","         */","        this._key = {","            dim    : ( this.axis === 'y' ) ? 'height' : 'width',","            minEdge: ( this.axis === 'y' ) ? 'top'    : 'left',","            maxEdge: ( this.axis === 'y' ) ? 'bottom' : 'right',","            xyIndex: ( this.axis === 'y' ) ? 1 : 0","        };","","        /**","         * Signals that the thumb has moved.  Payload includes the thumb's","         * pixel offset from the top/left edge of the rail, and if triggered by","         * dragging the thumb, the <code>drag:drag</code> event.","         *","         * @event thumbMove","         * @param event {Event} The event object for the thumbMove with the","         *                      following extra properties:","         *  <dl>","         *      <dt>offset</dt>","         *          <dd>Pixel offset from top/left of the slider to the new","         *          thumb position</dd>","         *      <dt>ddEvent (deprecated)</dt>","         *          <dd><code>drag:drag</code> event from the thumb</dd>","         *      <dt>originEvent</dt>","         *          <dd><code>drag:drag</code> event from the thumb</dd>","         *  </dl>","         */","        this.publish( 'thumbMove', {","            defaultFn: this._defThumbMoveFn,","            queuable : true","        } );","    },","","    /**","     * Create the DOM structure for the Slider.","     *","     * @method renderUI","     * @protected","     */","    renderUI : function () {","        var contentBox = this.get( 'contentBox' );","","        /**","         * The Node instance of the Slider's rail element.  Do not write to","         * this property.","         *","         * @property rail","         * @type {Node}","         */","        this.rail = this.renderRail();","","        this._uiSetRailLength( this.get( 'length' ) );","","        /**","         * The Node instance of the Slider's thumb element.  Do not write to","         * this property.","         *","         * @property thumb","         * @type {Node}","         */","        this.thumb = this.renderThumb();","","        this.rail.appendChild( this.thumb );","        // @TODO: insert( contentBox, 'replace' ) or setHTML?","        contentBox.appendChild( this.rail );","","        // <span class=\"yui3-slider-x\">","        contentBox.addClass( this.getClassName( this.axis ) );","    },","","    /**","     * Creates the Slider rail DOM subtree for insertion into the Slider's","     * <code>contentBox</code>.  Override this method if you want to provide","     * the rail element (presumably from existing markup).","     *","     * @method renderRail","     * @return {Node} the rail node subtree","     */","    renderRail: function () {","        var minCapClass = this.getClassName( 'rail', 'cap', this._key.minEdge ),","            maxCapClass = this.getClassName( 'rail', 'cap', this._key.maxEdge );","","        return Y.Node.create(","            Y.Lang.sub( this.RAIL_TEMPLATE, {","                railClass      : this.getClassName( 'rail' ),","                railMinCapClass: minCapClass,","                railMaxCapClass: maxCapClass","            } ) );","    },","","    /**","     * Sets the rail length according to the <code>length</code> attribute.","     *","     * @method _uiSetRailLength","     * @param length {String} the length to apply to the rail style","     * @protected","     */","    _uiSetRailLength: function ( length ) {","        this.rail.setStyle( this._key.dim, length );","    },","","    /**","     * Creates the Slider thumb DOM subtree for insertion into the Slider's","     * rail.  Override this method if you want to provide the thumb element","     * (presumably from existing markup).","     *","     * @method renderThumb","     * @return {Node} the thumb node subtree","     */","    renderThumb: function () {","        this._initThumbUrl();","","        var imageUrl = this.get( 'thumbUrl' );","","        return Y.Node.create(","            Y.Lang.sub( this.THUMB_TEMPLATE, {","                thumbClass      : this.getClassName( 'thumb' ),","                thumbShadowClass: this.getClassName( 'thumb', 'shadow' ),","                thumbImageClass : this.getClassName( 'thumb', 'image' ),","                thumbShadowUrl  : imageUrl,","                thumbImageUrl   : imageUrl,","                thumbAriaLabelId: this.getClassName( 'label', Y.guid()) // get unique id for specifying a label for ARIA","            } ) );","    },","    ","    /**","     * Gives focus to the thumb enabling keyboard access after clicking thumb","     *","     * @method _onThumbClick","     * @protected","     */","    _onThumbClick : function(e){","        this.thumb.focus();","    },","    ","    ","    /**","     * Creates the Y.DD.Drag instance used to handle the thumb movement and","     * binds Slider interaction to the configured value model.","     *","     * @method bindUI","     * @protected","     */","    bindUI : function () {","    ","        // Begin keyboard listeners ///////////////////////////////","        var boundingBox = this.get(\"boundingBox\"), //Y.one('body'),","        // Looking for a key event which will fire continously across browsers while the key is held down.","        keyEvent = (!Y.UA.opera) ? \"down:\" : \"press:\",            ","        // 38, 40 = arrow up/down, 33, 34 = page up/down,  35 , 36 = end/home","        keyEventSpec = keyEvent + \"38,40,33,34,35,36\",","        // 37 , 39 = arrow left/right","        keyLeftRightSpec = keyEvent + \"37,39\",","        // 37 , 39 = arrow left/right + meta (command/apple key) for mac","        keyLeftRightSpecMeta = keyEvent + \"37+meta,39+meta\";","","        boundingBox.on(\"key\", this._onDirectionKey, keyEventSpec, this);","        boundingBox.on(\"key\", this._onLeftRightKey, keyLeftRightSpec, this);","        boundingBox.on(\"key\", this._onLeftRightKeyMeta, keyLeftRightSpecMeta, this);","        // End keyboard listeners //////////////////////////////////","","        this.thumb.on('click', this._onThumbClick, this);","","        this._bindThumbDD();","","        this._bindValueLogic();","","        this.after( 'disabledChange', this._afterDisabledChange );","        this.after( 'lengthChange',   this._afterLengthChange );","        ","    },","                      ","    /**","     * increments Slider value by a minor increment","     *","     * @method _incrMinor","     * @protected","     */","    _incrMinor : function(){","        this.set('value', (this.get('value') + this.get('minorStep')));","    },","    ","    /**","     * decrements Slider value by a minor increment","     *","     * @method _decrMinor","     * @protected","     */","    _decrMinor : function(){","        this.set('value', (this.get('value') - this.get('minorStep')));","    },","        ","    /**","     * increments Slider value by a major increment","     *","     * @method _incrMajor","     * @protected","     */","    _incrMajor : function(){","        this.set('value', (this.get('value') + this.get('majorStep')));","    },","    ","    /**","     * decrements Slider value by a major increment","     *","     * @method _decrMajor","     * @protected","     */","    _decrMajor : function(){","        this.set('value', (this.get('value') - this.get('majorStep')));","    },","","    /**","     * sets the Slider value to the min value. ","     *","     * @method _setToMin","     * @protected","     */","    _setToMin : function(e){","        this.set('value', this.get('min'));","    },","","    /**","     * sets the Slider value to the max value. ","     *","     * @method _setToMax","     * @protected","     */","    _setToMax : function(e){","        this.set('value', this.get('max'));","    },","","    /**","     * sets the Slider's value in response to key events.","     * Left and right keys are in a separate method ","     * in case an implementation wants to increment values","     * but needs left and right arrow keys for other purposes.","     *","     * @method _onDirectionKey","     * @param e {Event} the key event","     * @protected","     */","    _onDirectionKey : function(e) {","        e.preventDefault();","        if(this.get('disabled') === false){","            switch (e.charCode) {","                case 38: // up","                    this._incrMinor();","                    break;","                case 40: // down","                    this._decrMinor();","                    break;","                case 36: // home","                    this._setToMin();","                    break;","                case 35: // end","                    this._setToMax();","                    break;","                case 33: // page up","                    this._incrMajor();","                    break;","                case 34: // page down","                    this._decrMajor();","                    break;","            }","        }","    },","","    /**","     * sets the Slider's value in response to left or right key events","     *","     * @method _onLeftRightKey","     * @param e {Event} the key event","     * @protected","     */","    _onLeftRightKey : function(e) {","        e.preventDefault();","        if(this.get('disabled') === false){","            switch (e.charCode) {","                case 37: // left","                    this._decrMinor();","                    break;","                case 39: // right","                    this._incrMinor();","                    break;","            }","        }","    },","","    /**","     * sets the Slider's value in response to left or right key events when a meta (mac command/apple) key is also pressed","     *","     * @method _onLeftRightKeyMeta","     * @param e {Event} the key event","     * @protected","     */","    _onLeftRightKeyMeta : function(e) {","        e.preventDefault();","        if(this.get('disabled') === false){","            switch (e.charCode) {","                case 37: // left + meta","                    this._setToMin();","                    break;","                case 39: // right + meta","                    this._setToMax();","                    break;","            }","        }","    },","","","","","","    /**","     * Makes the thumb draggable and constrains it to the rail.","     *","     * @method _bindThumbDD","     * @protected","     */","    _bindThumbDD: function () {","        var config = { constrain: this.rail };","        ","        // { constrain: rail, stickX: true }","        config[ 'stick' + this.axis.toUpperCase() ] = true;","","        /** ","         * The DD.Drag instance linked to the thumb node.","         *","         * @property _dd","         * @type {DD.Drag}","         * @protected","         */","        this._dd = new Y.DD.Drag( {","            node   : this.thumb,","            bubble : false,","            on     : {","                'drag:start': Y.bind( this._onDragStart, this )","            },","            after  : {","                'drag:drag': Y.bind( this._afterDrag,    this ),","                'drag:end' : Y.bind( this._afterDragEnd, this )","            }","        } );","","        // Constrain the thumb to the rail","        this._dd.plug( Y.Plugin.DDConstrained, config );","    },","","    /**","     * Stub implementation.  Override this (presumably in a class extension) to","     * initialize any value logic that depends on the presence of the Drag","     * instance.","     *","     * @method _bindValueLogic","     * @protected","     */","    _bindValueLogic: function () {},","","    /**","     * Moves the thumb to pixel offset position along the rail.","     *","     * @method _uiMoveThumb","     * @param offset {Number} the pixel offset to set as left or top style","     * @param [options] {Object} Details to send with the `thumbMove` event","     * @protected","     */","    _uiMoveThumb: function ( offset, options ) {","        if ( this.thumb ) {","            this.thumb.setStyle( this._key.minEdge, offset + 'px' );","","","            options || (options = {});","            options.offset = offset;","","            this.fire( 'thumbMove', options );","        }","    },","","    /**","     * Dispatches the <code>slideStart</code> event.","     *","     * @method _onDragStart","     * @param e {Event} the <code>drag:start</code> event from the thumb","     * @protected","     */","    _onDragStart: function ( e ) {","        /**","         * Signals the beginning of a thumb drag operation.  Payload includes","         * the thumb's drag:start event.","         *","         * @event slideStart","         * @param event {Event} The event object for the slideStart with the","         *                      following extra properties:","         *  <dl>","         *      <dt>ddEvent (deprecated)</dt>","         *          <dd><code>drag:start</code> event from the thumb</dd>","         *      <dt>originEvent</dt>","         *          <dd><code>drag:start</code> event from the thumb</dd>","         *  </dl>","         */","        this.fire('slideStart', {","           ddEvent: e, // for backward compatibility","           originEvent: e","        });","    },","","    /**","     * Dispatches the <code>thumbMove</code> event.","     *","     * @method _afterDrag","     * @param e {Event} the <code>drag:drag</code> event from the thumb","     * @protected","     */","    _afterDrag: function ( e ) {","        var thumbXY = e.info.xy[ this._key.xyIndex ],","            railXY  = e.target.con._regionCache[ this._key.minEdge ];","","        this.fire( 'thumbMove', {","            offset : (thumbXY - railXY),","            ddEvent: e, // for backward compatibility","            originEvent: e","        } );","    },","","    /**","     * Dispatches the <code>slideEnd</code> event.","     *","     * @method _onDragEnd","     * @param e {Event} the <code>drag:end</code> event from the thumb","     * @protected","     */","    _afterDragEnd: function ( e ) {","        /**","         * Signals the end of a thumb drag operation.  Payload includes","         * the thumb's drag:end event.","         *","         * @event slideEnd","         * @param event {Event} The event object for the slideEnd with the","         *                      following extra properties:","         *  <dl>","         *      <dt>ddEvent (deprecated)</dt>","         *          <dd><code>drag:end</code> event from the thumb</dd>","         *      <dt>originEvent</dt>","         *          <dd><code>drag:end</code> event from the thumb</dd>","         *  </dl>","         */","        this.fire('slideEnd', {","            ddEvent: e,","            originEvent: e","        });","    },","","    /**","     * Locks or unlocks the thumb.","     *","     * @method _afterDisabledChange","     * @param e {Event} The disabledChange event object","     * @protected","     */","    _afterDisabledChange: function ( e ) {","        this._dd.set( 'lock', e.newVal );","    },","","    /**","     * Handles changes to the <code>length</code> attribute.  By default, it","     * triggers an update to the UI.","     *","     * @method _afterLengthChange","     * @param e {Event} The lengthChange event object","     * @protected","     */","    _afterLengthChange: function ( e ) {","        if ( this.get( 'rendered' ) ) {","            this._uiSetRailLength( e.newVal );","","            this.syncUI();","        }","    },","","    /**","     * Synchronizes the DOM state with the attribute settings.","     *","     * @method syncUI","     */","    syncUI : function () {","        this._dd.con.resetCache();","","        this._syncThumbPosition();","","        // Forces a reflow of the bounding box to address IE8 inline-block","        // container not expanding correctly. bug 2527905","        //this.get('boundingBox').toggleClass('');","        this.thumb.set('aria-valuemin', this.get('min'));","        this.thumb.set('aria-valuemax', this.get('max'));","","        this._dd.set('lock', this.get('disabled'));","    },","","    /**","     * Stub implementation.  Override this (presumably in a class extension) to","     * ensure the thumb is in the correct position according to the value","     * alogorithm.","     * instance.","     *","     * @method _syncThumbPosition","     * @protected","     */","    _syncThumbPosition: function () {},","","    /**","     * Validates the axis is &quot;x&quot; or &quot;y&quot; (case insensitive).","     * Converts to lower case for storage.","     *","     * @method _setAxis","     * @param v {String} proposed value for the axis attribute","     * @return {String} lowercased first character of the input string","     * @protected","     */","    _setAxis : function (v) {","        v = ( v + '' ).toLowerCase();","","        return ( v === 'x' || v === 'y' ) ? v : INVALID_VALUE;","    },","","    /** ","     * <p>Ensures the stored length value is a string with a quantity and unit.","     * Unit will be defaulted to &quot;px&quot; if not included.  Rejects","     * values less than or equal to 0 and those that don't at least start with","     * a number.</p>","     *","     * <p>Currently only pixel lengths are supported.</p>","     *","     * @method _setLength","     * @param v {String} proposed value for the length attribute","     * @return {String} the sanitized value","     * @protected","     */","    _setLength: function ( v ) {","        v = ( v + '' ).toLowerCase();","","        var length = parseFloat( v, 10 ),","            units  = v.replace( /[\\d\\.\\-]/g, '' ) || this.DEF_UNIT;","","        return length > 0 ? ( length + units ) : INVALID_VALUE;","    },","","    /**","     * <p>Defaults the thumbURL attribute according to the current skin, or","     * &quot;sam&quot; if none can be determined.  Horizontal Sliders will have","     * their <code>thumbUrl</code> attribute set to</p>","     * <p><code>&quot;/<em>configured</em>/<em>yu</em>i/<em>builddi</em>r/slider-base/assets/skins/sam/thumb-x.png&quot;</code></p>","     * <p>And vertical thumbs will get</p>","     * <p><code>&quot;/<em>configured</em>/<em>yui</em>/<em>builddir</em>/slider-base/assets/skins/sam/thumb-y.png&quot;</code></p>","     *","     * @method _initThumbUrl","     * @protected","     */","    _initThumbUrl: function () {","        if (!this.get('thumbUrl')) {","            var skin = this.getSkinName() || 'sam',","                base = Y.config.base;","","            // Unfortunate hack to avoid requesting image resources from the","            // combo service.  The combo service does not serve images.","            if (base.indexOf('http://yui.yahooapis.com/combo') === 0) {","                base = 'http://yui.yahooapis.com/' + Y.version + '/build/';","            }","","            // <img src=\"/path/to/build/slider-base/assets/skins/sam/thumb-x.png\">","            this.set('thumbUrl', base + 'slider-base/assets/skins/' +","                                 skin + '/thumb-' + this.axis + '.png');","","        }","    },","","    /**","     * Bounding box template that will contain the Slider's DOM subtree.  &lt;span&gt;s are used to support inline-block styling.","     *","     * @property BOUNDING_TEMPLATE","     * @type {String}","     * @default &lt;span>&lt;/span>","     */","    BOUNDING_TEMPLATE : '<span></span>',","","    /**","     * Content box template that will contain the Slider's rail and thumb.","     *","     * @property CONTENT_TEMPLATE","     * @type {String}","     * @default &lt;span>&lt;/span>","     */","    CONTENT_TEMPLATE  : '<span></span>',","","    /**","     * Rail template that will contain the end caps and the thumb.","     * {placeholder}s are used for template substitution at render time.","     *","     * @property RAIL_TEMPLATE","     * @type {String}","     * @default &lt;span class=\"{railClass}\">&lt;span class=\"{railMinCapClass}\">&lt;/span>&lt;span class=\"{railMaxCapClass}\">&lt;/span>&lt;/span>","     */","    RAIL_TEMPLATE     : '<span class=\"{railClass}\">' +","                            '<span class=\"{railMinCapClass}\"></span>' +","                            '<span class=\"{railMaxCapClass}\"></span>' +","                        '</span>',","","    /**","     * Thumb template that will contain the thumb image and shadow. &lt;img>","     * tags are used instead of background images to avoid a flicker bug in IE.","     * {placeholder}s are used for template substitution at render time.","     *","     * @property THUMB_TEMPLATE","     * @type {String}","     * @default &lt;span class=\"{thumbClass}\" tabindex=\"-1\">&lt;img src=\"{thumbShadowUrl}\" alt=\"Slider thumb shadow\" class=\"{thumbShadowClass}\">&lt;img src=\"{thumbImageUrl}\" alt=\"Slider thumb\" class=\"{thumbImageClass}\">&lt;/span>","     */","    THUMB_TEMPLATE    : '<span class=\"{thumbClass}\" aria-labelledby=\"{thumbAriaLabelId}\" aria-valuetext=\"\" aria-valuemax=\"\" aria-valuemin=\"\" aria-valuenow=\"\" role=\"slider\" tabindex=\"0\">' +   // keyboard access jeff     tabindex=\"-1\"","                            '<img src=\"{thumbShadowUrl}\" ' +","                                'alt=\"Slider thumb shadow\" ' +","                                'class=\"{thumbShadowClass}\">' +","                            '<img src=\"{thumbImageUrl}\" ' +","                                'alt=\"Slider thumb\" ' +","                                'class=\"{thumbImageClass}\">' +","                        '</span>'","","}, {","","    // Y.SliderBase static properties","","    /**","     * The identity of the widget.","     *","     * @property NAME","     * @type String","     * @default 'sliderBase'","     * @readOnly","     * @protected","     * @static","     */","    NAME : 'sliderBase',","","    /**","     * Static property used to define the default attribute configuration of","     * the Widget.","     *","     * @property ATTRS","     * @type {Object}","     * @protected","     * @static","     */","    ATTRS : {","","        /**","         * Axis upon which the Slider's thumb moves.  &quot;x&quot; for","         * horizontal, &quot;y&quot; for vertical.","         *","         * @attribute axis","         * @type {String}","         * @default &quot;x&quot;","         * @writeOnce","         */","        axis : {","            value     : 'x',","            writeOnce : true,","            setter    : '_setAxis',","            lazyAdd   : false","        },","","        /**","         * The length of the rail (exclusive of the end caps if positioned by","         * CSS).  This corresponds to the movable range of the thumb.","         *","         * @attribute length","         * @type {String | Number} e.g. \"200px\" or 200","         * @default 150px","         */","        length: {","            value: '150px',","            setter: '_setLength'","        },","","        /**","         * Path to the thumb image.  This will be used as both the thumb and","         * shadow as a sprite.  Defaults at render() to thumb-x.png or","         * thumb-y.png in the skin directory of the current skin.","         *","         * @attribute thumbUrl","         * @type {String}","         * @default thumb-x.png or thumb-y.png in the sam skin directory of the","         *          current build path for Slider","         */","        thumbUrl: {","            value: null,","            validator: Y.Lang.isString","        }","    }","});","","","}, '3.10.3', {\"requires\": [\"widget\", \"dd-constrain\", \"event-key\"], \"skinnable\": true});","","}());"]};
}
var __cov_IOALRB5212pW1kRZ4PjHRg = __coverage__['build/slider-base/slider-base.js'];
__cov_IOALRB5212pW1kRZ4PjHRg.s['1']++;YUI.add('slider-base',function(Y,NAME){__cov_IOALRB5212pW1kRZ4PjHRg.f['1']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['2']++;var INVALID_VALUE=Y.Attribute.INVALID_VALUE;__cov_IOALRB5212pW1kRZ4PjHRg.s['3']++;function SliderBase(){__cov_IOALRB5212pW1kRZ4PjHRg.f['2']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['4']++;SliderBase.superclass.constructor.apply(this,arguments);}__cov_IOALRB5212pW1kRZ4PjHRg.s['5']++;Y.SliderBase=Y.extend(SliderBase,Y.Widget,{initializer:function(){__cov_IOALRB5212pW1kRZ4PjHRg.f['3']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['6']++;this.axis=this.get('axis');__cov_IOALRB5212pW1kRZ4PjHRg.s['7']++;this._key={dim:this.axis==='y'?(__cov_IOALRB5212pW1kRZ4PjHRg.b['1'][0]++,'height'):(__cov_IOALRB5212pW1kRZ4PjHRg.b['1'][1]++,'width'),minEdge:this.axis==='y'?(__cov_IOALRB5212pW1kRZ4PjHRg.b['2'][0]++,'top'):(__cov_IOALRB5212pW1kRZ4PjHRg.b['2'][1]++,'left'),maxEdge:this.axis==='y'?(__cov_IOALRB5212pW1kRZ4PjHRg.b['3'][0]++,'bottom'):(__cov_IOALRB5212pW1kRZ4PjHRg.b['3'][1]++,'right'),xyIndex:this.axis==='y'?(__cov_IOALRB5212pW1kRZ4PjHRg.b['4'][0]++,1):(__cov_IOALRB5212pW1kRZ4PjHRg.b['4'][1]++,0)};__cov_IOALRB5212pW1kRZ4PjHRg.s['8']++;this.publish('thumbMove',{defaultFn:this._defThumbMoveFn,queuable:true});},renderUI:function(){__cov_IOALRB5212pW1kRZ4PjHRg.f['4']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['9']++;var contentBox=this.get('contentBox');__cov_IOALRB5212pW1kRZ4PjHRg.s['10']++;this.rail=this.renderRail();__cov_IOALRB5212pW1kRZ4PjHRg.s['11']++;this._uiSetRailLength(this.get('length'));__cov_IOALRB5212pW1kRZ4PjHRg.s['12']++;this.thumb=this.renderThumb();__cov_IOALRB5212pW1kRZ4PjHRg.s['13']++;this.rail.appendChild(this.thumb);__cov_IOALRB5212pW1kRZ4PjHRg.s['14']++;contentBox.appendChild(this.rail);__cov_IOALRB5212pW1kRZ4PjHRg.s['15']++;contentBox.addClass(this.getClassName(this.axis));},renderRail:function(){__cov_IOALRB5212pW1kRZ4PjHRg.f['5']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['16']++;var minCapClass=this.getClassName('rail','cap',this._key.minEdge),maxCapClass=this.getClassName('rail','cap',this._key.maxEdge);__cov_IOALRB5212pW1kRZ4PjHRg.s['17']++;return Y.Node.create(Y.Lang.sub(this.RAIL_TEMPLATE,{railClass:this.getClassName('rail'),railMinCapClass:minCapClass,railMaxCapClass:maxCapClass}));},_uiSetRailLength:function(length){__cov_IOALRB5212pW1kRZ4PjHRg.f['6']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['18']++;this.rail.setStyle(this._key.dim,length);},renderThumb:function(){__cov_IOALRB5212pW1kRZ4PjHRg.f['7']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['19']++;this._initThumbUrl();__cov_IOALRB5212pW1kRZ4PjHRg.s['20']++;var imageUrl=this.get('thumbUrl');__cov_IOALRB5212pW1kRZ4PjHRg.s['21']++;return Y.Node.create(Y.Lang.sub(this.THUMB_TEMPLATE,{thumbClass:this.getClassName('thumb'),thumbShadowClass:this.getClassName('thumb','shadow'),thumbImageClass:this.getClassName('thumb','image'),thumbShadowUrl:imageUrl,thumbImageUrl:imageUrl,thumbAriaLabelId:this.getClassName('label',Y.guid())}));},_onThumbClick:function(e){__cov_IOALRB5212pW1kRZ4PjHRg.f['8']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['22']++;this.thumb.focus();},bindUI:function(){__cov_IOALRB5212pW1kRZ4PjHRg.f['9']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['23']++;var boundingBox=this.get('boundingBox'),keyEvent=!Y.UA.opera?(__cov_IOALRB5212pW1kRZ4PjHRg.b['5'][0]++,'down:'):(__cov_IOALRB5212pW1kRZ4PjHRg.b['5'][1]++,'press:'),keyEventSpec=keyEvent+'38,40,33,34,35,36',keyLeftRightSpec=keyEvent+'37,39',keyLeftRightSpecMeta=keyEvent+'37+meta,39+meta';__cov_IOALRB5212pW1kRZ4PjHRg.s['24']++;boundingBox.on('key',this._onDirectionKey,keyEventSpec,this);__cov_IOALRB5212pW1kRZ4PjHRg.s['25']++;boundingBox.on('key',this._onLeftRightKey,keyLeftRightSpec,this);__cov_IOALRB5212pW1kRZ4PjHRg.s['26']++;boundingBox.on('key',this._onLeftRightKeyMeta,keyLeftRightSpecMeta,this);__cov_IOALRB5212pW1kRZ4PjHRg.s['27']++;this.thumb.on('click',this._onThumbClick,this);__cov_IOALRB5212pW1kRZ4PjHRg.s['28']++;this._bindThumbDD();__cov_IOALRB5212pW1kRZ4PjHRg.s['29']++;this._bindValueLogic();__cov_IOALRB5212pW1kRZ4PjHRg.s['30']++;this.after('disabledChange',this._afterDisabledChange);__cov_IOALRB5212pW1kRZ4PjHRg.s['31']++;this.after('lengthChange',this._afterLengthChange);},_incrMinor:function(){__cov_IOALRB5212pW1kRZ4PjHRg.f['10']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['32']++;this.set('value',this.get('value')+this.get('minorStep'));},_decrMinor:function(){__cov_IOALRB5212pW1kRZ4PjHRg.f['11']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['33']++;this.set('value',this.get('value')-this.get('minorStep'));},_incrMajor:function(){__cov_IOALRB5212pW1kRZ4PjHRg.f['12']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['34']++;this.set('value',this.get('value')+this.get('majorStep'));},_decrMajor:function(){__cov_IOALRB5212pW1kRZ4PjHRg.f['13']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['35']++;this.set('value',this.get('value')-this.get('majorStep'));},_setToMin:function(e){__cov_IOALRB5212pW1kRZ4PjHRg.f['14']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['36']++;this.set('value',this.get('min'));},_setToMax:function(e){__cov_IOALRB5212pW1kRZ4PjHRg.f['15']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['37']++;this.set('value',this.get('max'));},_onDirectionKey:function(e){__cov_IOALRB5212pW1kRZ4PjHRg.f['16']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['38']++;e.preventDefault();__cov_IOALRB5212pW1kRZ4PjHRg.s['39']++;if(this.get('disabled')===false){__cov_IOALRB5212pW1kRZ4PjHRg.b['6'][0]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['40']++;switch(e.charCode){case 38:__cov_IOALRB5212pW1kRZ4PjHRg.b['7'][0]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['41']++;this._incrMinor();__cov_IOALRB5212pW1kRZ4PjHRg.s['42']++;break;case 40:__cov_IOALRB5212pW1kRZ4PjHRg.b['7'][1]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['43']++;this._decrMinor();__cov_IOALRB5212pW1kRZ4PjHRg.s['44']++;break;case 36:__cov_IOALRB5212pW1kRZ4PjHRg.b['7'][2]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['45']++;this._setToMin();__cov_IOALRB5212pW1kRZ4PjHRg.s['46']++;break;case 35:__cov_IOALRB5212pW1kRZ4PjHRg.b['7'][3]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['47']++;this._setToMax();__cov_IOALRB5212pW1kRZ4PjHRg.s['48']++;break;case 33:__cov_IOALRB5212pW1kRZ4PjHRg.b['7'][4]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['49']++;this._incrMajor();__cov_IOALRB5212pW1kRZ4PjHRg.s['50']++;break;case 34:__cov_IOALRB5212pW1kRZ4PjHRg.b['7'][5]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['51']++;this._decrMajor();__cov_IOALRB5212pW1kRZ4PjHRg.s['52']++;break;}}else{__cov_IOALRB5212pW1kRZ4PjHRg.b['6'][1]++;}},_onLeftRightKey:function(e){__cov_IOALRB5212pW1kRZ4PjHRg.f['17']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['53']++;e.preventDefault();__cov_IOALRB5212pW1kRZ4PjHRg.s['54']++;if(this.get('disabled')===false){__cov_IOALRB5212pW1kRZ4PjHRg.b['8'][0]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['55']++;switch(e.charCode){case 37:__cov_IOALRB5212pW1kRZ4PjHRg.b['9'][0]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['56']++;this._decrMinor();__cov_IOALRB5212pW1kRZ4PjHRg.s['57']++;break;case 39:__cov_IOALRB5212pW1kRZ4PjHRg.b['9'][1]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['58']++;this._incrMinor();__cov_IOALRB5212pW1kRZ4PjHRg.s['59']++;break;}}else{__cov_IOALRB5212pW1kRZ4PjHRg.b['8'][1]++;}},_onLeftRightKeyMeta:function(e){__cov_IOALRB5212pW1kRZ4PjHRg.f['18']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['60']++;e.preventDefault();__cov_IOALRB5212pW1kRZ4PjHRg.s['61']++;if(this.get('disabled')===false){__cov_IOALRB5212pW1kRZ4PjHRg.b['10'][0]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['62']++;switch(e.charCode){case 37:__cov_IOALRB5212pW1kRZ4PjHRg.b['11'][0]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['63']++;this._setToMin();__cov_IOALRB5212pW1kRZ4PjHRg.s['64']++;break;case 39:__cov_IOALRB5212pW1kRZ4PjHRg.b['11'][1]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['65']++;this._setToMax();__cov_IOALRB5212pW1kRZ4PjHRg.s['66']++;break;}}else{__cov_IOALRB5212pW1kRZ4PjHRg.b['10'][1]++;}},_bindThumbDD:function(){__cov_IOALRB5212pW1kRZ4PjHRg.f['19']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['67']++;var config={constrain:this.rail};__cov_IOALRB5212pW1kRZ4PjHRg.s['68']++;config['stick'+this.axis.toUpperCase()]=true;__cov_IOALRB5212pW1kRZ4PjHRg.s['69']++;this._dd=new Y.DD.Drag({node:this.thumb,bubble:false,on:{'drag:start':Y.bind(this._onDragStart,this)},after:{'drag:drag':Y.bind(this._afterDrag,this),'drag:end':Y.bind(this._afterDragEnd,this)}});__cov_IOALRB5212pW1kRZ4PjHRg.s['70']++;this._dd.plug(Y.Plugin.DDConstrained,config);},_bindValueLogic:function(){__cov_IOALRB5212pW1kRZ4PjHRg.f['20']++;},_uiMoveThumb:function(offset,options){__cov_IOALRB5212pW1kRZ4PjHRg.f['21']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['71']++;if(this.thumb){__cov_IOALRB5212pW1kRZ4PjHRg.b['12'][0]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['72']++;this.thumb.setStyle(this._key.minEdge,offset+'px');__cov_IOALRB5212pW1kRZ4PjHRg.s['73']++;(__cov_IOALRB5212pW1kRZ4PjHRg.b['13'][0]++,options)||(__cov_IOALRB5212pW1kRZ4PjHRg.b['13'][1]++,options={});__cov_IOALRB5212pW1kRZ4PjHRg.s['74']++;options.offset=offset;__cov_IOALRB5212pW1kRZ4PjHRg.s['75']++;this.fire('thumbMove',options);}else{__cov_IOALRB5212pW1kRZ4PjHRg.b['12'][1]++;}},_onDragStart:function(e){__cov_IOALRB5212pW1kRZ4PjHRg.f['22']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['76']++;this.fire('slideStart',{ddEvent:e,originEvent:e});},_afterDrag:function(e){__cov_IOALRB5212pW1kRZ4PjHRg.f['23']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['77']++;var thumbXY=e.info.xy[this._key.xyIndex],railXY=e.target.con._regionCache[this._key.minEdge];__cov_IOALRB5212pW1kRZ4PjHRg.s['78']++;this.fire('thumbMove',{offset:thumbXY-railXY,ddEvent:e,originEvent:e});},_afterDragEnd:function(e){__cov_IOALRB5212pW1kRZ4PjHRg.f['24']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['79']++;this.fire('slideEnd',{ddEvent:e,originEvent:e});},_afterDisabledChange:function(e){__cov_IOALRB5212pW1kRZ4PjHRg.f['25']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['80']++;this._dd.set('lock',e.newVal);},_afterLengthChange:function(e){__cov_IOALRB5212pW1kRZ4PjHRg.f['26']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['81']++;if(this.get('rendered')){__cov_IOALRB5212pW1kRZ4PjHRg.b['14'][0]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['82']++;this._uiSetRailLength(e.newVal);__cov_IOALRB5212pW1kRZ4PjHRg.s['83']++;this.syncUI();}else{__cov_IOALRB5212pW1kRZ4PjHRg.b['14'][1]++;}},syncUI:function(){__cov_IOALRB5212pW1kRZ4PjHRg.f['27']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['84']++;this._dd.con.resetCache();__cov_IOALRB5212pW1kRZ4PjHRg.s['85']++;this._syncThumbPosition();__cov_IOALRB5212pW1kRZ4PjHRg.s['86']++;this.thumb.set('aria-valuemin',this.get('min'));__cov_IOALRB5212pW1kRZ4PjHRg.s['87']++;this.thumb.set('aria-valuemax',this.get('max'));__cov_IOALRB5212pW1kRZ4PjHRg.s['88']++;this._dd.set('lock',this.get('disabled'));},_syncThumbPosition:function(){__cov_IOALRB5212pW1kRZ4PjHRg.f['28']++;},_setAxis:function(v){__cov_IOALRB5212pW1kRZ4PjHRg.f['29']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['89']++;v=(v+'').toLowerCase();__cov_IOALRB5212pW1kRZ4PjHRg.s['90']++;return(__cov_IOALRB5212pW1kRZ4PjHRg.b['16'][0]++,v==='x')||(__cov_IOALRB5212pW1kRZ4PjHRg.b['16'][1]++,v==='y')?(__cov_IOALRB5212pW1kRZ4PjHRg.b['15'][0]++,v):(__cov_IOALRB5212pW1kRZ4PjHRg.b['15'][1]++,INVALID_VALUE);},_setLength:function(v){__cov_IOALRB5212pW1kRZ4PjHRg.f['30']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['91']++;v=(v+'').toLowerCase();__cov_IOALRB5212pW1kRZ4PjHRg.s['92']++;var length=parseFloat(v,10),units=(__cov_IOALRB5212pW1kRZ4PjHRg.b['17'][0]++,v.replace(/[\d\.\-]/g,''))||(__cov_IOALRB5212pW1kRZ4PjHRg.b['17'][1]++,this.DEF_UNIT);__cov_IOALRB5212pW1kRZ4PjHRg.s['93']++;return length>0?(__cov_IOALRB5212pW1kRZ4PjHRg.b['18'][0]++,length+units):(__cov_IOALRB5212pW1kRZ4PjHRg.b['18'][1]++,INVALID_VALUE);},_initThumbUrl:function(){__cov_IOALRB5212pW1kRZ4PjHRg.f['31']++;__cov_IOALRB5212pW1kRZ4PjHRg.s['94']++;if(!this.get('thumbUrl')){__cov_IOALRB5212pW1kRZ4PjHRg.b['19'][0]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['95']++;var skin=(__cov_IOALRB5212pW1kRZ4PjHRg.b['20'][0]++,this.getSkinName())||(__cov_IOALRB5212pW1kRZ4PjHRg.b['20'][1]++,'sam'),base=Y.config.base;__cov_IOALRB5212pW1kRZ4PjHRg.s['96']++;if(base.indexOf('http://yui.yahooapis.com/combo')===0){__cov_IOALRB5212pW1kRZ4PjHRg.b['21'][0]++;__cov_IOALRB5212pW1kRZ4PjHRg.s['97']++;base='http://yui.yahooapis.com/'+Y.version+'/build/';}else{__cov_IOALRB5212pW1kRZ4PjHRg.b['21'][1]++;}__cov_IOALRB5212pW1kRZ4PjHRg.s['98']++;this.set('thumbUrl',base+'slider-base/assets/skins/'+skin+'/thumb-'+this.axis+'.png');}else{__cov_IOALRB5212pW1kRZ4PjHRg.b['19'][1]++;}},BOUNDING_TEMPLATE:'<span></span>',CONTENT_TEMPLATE:'<span></span>',RAIL_TEMPLATE:'<span class="{railClass}">'+'<span class="{railMinCapClass}"></span>'+'<span class="{railMaxCapClass}"></span>'+'</span>',THUMB_TEMPLATE:'<span class="{thumbClass}" aria-labelledby="{thumbAriaLabelId}" aria-valuetext="" aria-valuemax="" aria-valuemin="" aria-valuenow="" role="slider" tabindex="0">'+'<img src="{thumbShadowUrl}" '+'alt="Slider thumb shadow" '+'class="{thumbShadowClass}">'+'<img src="{thumbImageUrl}" '+'alt="Slider thumb" '+'class="{thumbImageClass}">'+'</span>'},{NAME:'sliderBase',ATTRS:{axis:{value:'x',writeOnce:true,setter:'_setAxis',lazyAdd:false},length:{value:'150px',setter:'_setLength'},thumbUrl:{value:null,validator:Y.Lang.isString}}});},'3.10.3',{'requires':['widget','dd-constrain','event-key'],'skinnable':true});