~ubuntu-branches/ubuntu/utopic/moodle/utopic

« back to all changes in this revision

Viewing changes to lib/yuilib/3.13.0/widget-child/widget-child-coverage.js

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-05-12 16:10:38 UTC
  • mfrom: (36.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140512161038-puyqf65k4e0s8ytz
Tags: 2.6.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
YUI 3.13.0 (build 508226d)
 
3
Copyright 2013 Yahoo! Inc. All rights reserved.
 
4
Licensed under the BSD License.
 
5
http://yuilibrary.com/license/
 
6
*/
 
7
 
 
8
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
 
9
if (!__coverage__['build/widget-child/widget-child.js']) {
 
10
   __coverage__['build/widget-child/widget-child.js'] = {"path":"build/widget-child/widget-child.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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[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]},"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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":43}}},"2":{"name":"Child","line":18,"loc":{"start":{"line":18,"column":0},"end":{"line":18,"column":17}}},"3":{"name":"(anonymous_3)","line":57,"loc":{"start":{"line":57,"column":16},"end":{"line":57,"column":28}}},"4":{"name":"(anonymous_4)","line":95,"loc":{"start":{"line":95,"column":16},"end":{"line":95,"column":28}}},"5":{"name":"(anonymous_5)","line":129,"loc":{"start":{"line":129,"column":16},"end":{"line":129,"column":28}}},"6":{"name":"(anonymous_6)","line":131,"loc":{"start":{"line":131,"column":28},"end":{"line":131,"column":45}}},"7":{"name":"(anonymous_7)","line":182,"loc":{"start":{"line":182,"column":21},"end":{"line":182,"column":33}}},"8":{"name":"(anonymous_8)","line":200,"loc":{"start":{"line":200,"column":10},"end":{"line":200,"column":30}}},"9":{"name":"(anonymous_9)","line":225,"loc":{"start":{"line":225,"column":14},"end":{"line":225,"column":34}}},"10":{"name":"(anonymous_10)","line":246,"loc":{"start":{"line":246,"column":12},"end":{"line":246,"column":29}}},"11":{"name":"(anonymous_11)","line":276,"loc":{"start":{"line":276,"column":12},"end":{"line":276,"column":24}}},"12":{"name":"(anonymous_12)","line":287,"loc":{"start":{"line":287,"column":14},"end":{"line":287,"column":31}}},"13":{"name":"(anonymous_13)","line":314,"loc":{"start":{"line":314,"column":25},"end":{"line":314,"column":45}}},"14":{"name":"(anonymous_14)","line":338,"loc":{"start":{"line":338,"column":31},"end":{"line":338,"column":48}}},"15":{"name":"(anonymous_15)","line":353,"loc":{"start":{"line":353,"column":18},"end":{"line":353,"column":30}}},"16":{"name":"(anonymous_16)","line":368,"loc":{"start":{"line":368,"column":18},"end":{"line":368,"column":30}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":377,"column":53}},"2":{"start":{"line":9,"column":0},"end":{"line":9,"column":18}},"3":{"start":{"line":18,"column":0},"end":{"line":24,"column":1}},"4":{"start":{"line":21,"column":4},"end":{"line":21,"column":47}},"5":{"start":{"line":22,"column":4},"end":{"line":22,"column":47}},"6":{"start":{"line":26,"column":0},"end":{"line":150,"column":2}},"7":{"start":{"line":59,"column":12},"end":{"line":60,"column":27}},"8":{"start":{"line":62,"column":12},"end":{"line":64,"column":13}},"9":{"start":{"line":63,"column":16},"end":{"line":63,"column":45}},"10":{"start":{"line":66,"column":12},"end":{"line":66,"column":25}},"11":{"start":{"line":97,"column":12},"end":{"line":99,"column":27}},"12":{"start":{"line":101,"column":12},"end":{"line":111,"column":13}},"13":{"start":{"line":103,"column":16},"end":{"line":103,"column":36}},"14":{"start":{"line":105,"column":16},"end":{"line":107,"column":17}},"15":{"start":{"line":106,"column":20},"end":{"line":106,"column":26}},"16":{"start":{"line":109,"column":16},"end":{"line":109,"column":46}},"17":{"start":{"line":113,"column":12},"end":{"line":113,"column":25}},"18":{"start":{"line":131,"column":12},"end":{"line":143,"column":14}},"19":{"start":{"line":133,"column":16},"end":{"line":135,"column":38}},"20":{"start":{"line":137,"column":16},"end":{"line":139,"column":17}},"21":{"start":{"line":138,"column":20},"end":{"line":138,"column":76}},"22":{"start":{"line":141,"column":16},"end":{"line":141,"column":62}},"23":{"start":{"line":145,"column":12},"end":{"line":145,"column":35}},"24":{"start":{"line":152,"column":0},"end":{"line":372,"column":2}},"25":{"start":{"line":183,"column":8},"end":{"line":184,"column":22}},"26":{"start":{"line":186,"column":8},"end":{"line":188,"column":9}},"27":{"start":{"line":187,"column":12},"end":{"line":187,"column":48}},"28":{"start":{"line":190,"column":8},"end":{"line":190,"column":25}},"29":{"start":{"line":202,"column":8},"end":{"line":203,"column":20}},"30":{"start":{"line":205,"column":8},"end":{"line":207,"column":9}},"31":{"start":{"line":206,"column":12},"end":{"line":206,"column":57}},"32":{"start":{"line":209,"column":8},"end":{"line":211,"column":9}},"33":{"start":{"line":210,"column":12},"end":{"line":210,"column":37}},"34":{"start":{"line":213,"column":8},"end":{"line":213,"column":23}},"35":{"start":{"line":227,"column":8},"end":{"line":229,"column":20}},"36":{"start":{"line":231,"column":8},"end":{"line":233,"column":9}},"37":{"start":{"line":232,"column":12},"end":{"line":232,"column":47}},"38":{"start":{"line":235,"column":8},"end":{"line":237,"column":9}},"39":{"start":{"line":236,"column":12},"end":{"line":236,"column":55}},"40":{"start":{"line":239,"column":8},"end":{"line":239,"column":23}},"41":{"start":{"line":248,"column":8},"end":{"line":249,"column":20}},"42":{"start":{"line":251,"column":8},"end":{"line":262,"column":9}},"43":{"start":{"line":252,"column":12},"end":{"line":252,"column":77}},"44":{"start":{"line":256,"column":12},"end":{"line":256,"column":40}},"45":{"start":{"line":258,"column":12},"end":{"line":260,"column":13}},"46":{"start":{"line":259,"column":16},"end":{"line":259,"column":59}},"47":{"start":{"line":264,"column":8},"end":{"line":264,"column":23}},"48":{"start":{"line":277,"column":8},"end":{"line":277,"column":42}},"49":{"start":{"line":289,"column":8},"end":{"line":290,"column":19}},"50":{"start":{"line":292,"column":8},"end":{"line":300,"column":9}},"51":{"start":{"line":294,"column":12},"end":{"line":294,"column":40}},"52":{"start":{"line":296,"column":12},"end":{"line":298,"column":13}},"53":{"start":{"line":297,"column":16},"end":{"line":297,"column":46}},"54":{"start":{"line":302,"column":8},"end":{"line":302,"column":22}},"55":{"start":{"line":316,"column":8},"end":{"line":317,"column":55}},"56":{"start":{"line":319,"column":8},"end":{"line":324,"column":9}},"57":{"start":{"line":320,"column":12},"end":{"line":320,"column":40}},"58":{"start":{"line":323,"column":12},"end":{"line":323,"column":37}},"59":{"start":{"line":339,"column":8},"end":{"line":339,"column":47}},"60":{"start":{"line":354,"column":8},"end":{"line":354,"column":55}},"61":{"start":{"line":369,"column":8},"end":{"line":369,"column":69}},"62":{"start":{"line":374,"column":0},"end":{"line":374,"column":22}}},"branchMap":{"1":{"line":62,"type":"if","locations":[{"start":{"line":62,"column":12},"end":{"line":62,"column":12}},{"start":{"line":62,"column":12},"end":{"line":62,"column":12}}]},"2":{"line":105,"type":"if","locations":[{"start":{"line":105,"column":16},"end":{"line":105,"column":16}},{"start":{"line":105,"column":16},"end":{"line":105,"column":16}}]},"3":{"line":137,"type":"if","locations":[{"start":{"line":137,"column":16},"end":{"line":137,"column":16}},{"start":{"line":137,"column":16},"end":{"line":137,"column":16}}]},"4":{"line":138,"type":"binary-expr","locations":[{"start":{"line":138,"column":32},"end":{"line":138,"column":38}},{"start":{"line":138,"column":42},"end":{"line":138,"column":74}}]},"5":{"line":141,"type":"cond-expr","locations":[{"start":{"line":141,"column":35},"end":{"line":141,"column":52}},{"start":{"line":141,"column":55},"end":{"line":141,"column":60}}]},"6":{"line":186,"type":"if","locations":[{"start":{"line":186,"column":8},"end":{"line":186,"column":8}},{"start":{"line":186,"column":8},"end":{"line":186,"column":8}}]},"7":{"line":205,"type":"if","locations":[{"start":{"line":205,"column":8},"end":{"line":205,"column":8}},{"start":{"line":205,"column":8},"end":{"line":205,"column":8}}]},"8":{"line":209,"type":"if","locations":[{"start":{"line":209,"column":8},"end":{"line":209,"column":8}},{"start":{"line":209,"column":8},"end":{"line":209,"column":8}}]},"9":{"line":209,"type":"binary-expr","locations":[{"start":{"line":209,"column":12},"end":{"line":209,"column":20}},{"start":{"line":209,"column":24},"end":{"line":209,"column":32}}]},"10":{"line":231,"type":"if","locations":[{"start":{"line":231,"column":8},"end":{"line":231,"column":8}},{"start":{"line":231,"column":8},"end":{"line":231,"column":8}}]},"11":{"line":231,"type":"binary-expr","locations":[{"start":{"line":231,"column":12},"end":{"line":231,"column":18}},{"start":{"line":231,"column":22},"end":{"line":231,"column":31}}]},"12":{"line":235,"type":"if","locations":[{"start":{"line":235,"column":8},"end":{"line":235,"column":8}},{"start":{"line":235,"column":8},"end":{"line":235,"column":8}}]},"13":{"line":235,"type":"binary-expr","locations":[{"start":{"line":235,"column":12},"end":{"line":235,"column":20}},{"start":{"line":235,"column":24},"end":{"line":235,"column":32}}]},"14":{"line":251,"type":"if","locations":[{"start":{"line":251,"column":8},"end":{"line":251,"column":8}},{"start":{"line":251,"column":8},"end":{"line":251,"column":8}}]},"15":{"line":258,"type":"if","locations":[{"start":{"line":258,"column":12},"end":{"line":258,"column":12}},{"start":{"line":258,"column":12},"end":{"line":258,"column":12}}]},"16":{"line":292,"type":"if","locations":[{"start":{"line":292,"column":8},"end":{"line":292,"column":8}},{"start":{"line":292,"column":8},"end":{"line":292,"column":8}}]},"17":{"line":296,"type":"binary-expr","locations":[{"start":{"line":296,"column":19},"end":{"line":296,"column":33}},{"start":{"line":296,"column":37},"end":{"line":296,"column":64}}]},"18":{"line":319,"type":"if","locations":[{"start":{"line":319,"column":8},"end":{"line":319,"column":8}},{"start":{"line":319,"column":8},"end":{"line":319,"column":8}}]}},"code":["(function () { YUI.add('widget-child', function (Y, NAME) {","","/**"," * Extension enabling a Widget to be a child of another Widget."," *"," * @module widget-child"," */","","var Lang = Y.Lang;","","/**"," * Widget extension providing functionality enabling a Widget to be a"," * child of another Widget."," *"," * @class WidgetChild"," * @param {Object} config User configuration object.","*/","function Child() {","","    //  Widget method overlap","    Y.after(this._syncUIChild, this, \"syncUI\");","    Y.after(this._bindUIChild, this, \"bindUI\");","","}","","Child.ATTRS = {","","    /**","     * @attribute selected","     * @type Number","     * @default 0","     *","     * @description Number indicating if the Widget is selected.  Possible","     * values are:","     * <dl>","     * <dt>0</dt> <dd>(Default) Not selected</dd>","     * <dt>1</dt> <dd>Fully selected</dd>","     * <dt>2</dt> <dd>Partially selected</dd>","     * </dl>","    */","    selected: {","        value: 0,","        validator: Lang.isNumber","    },","","","    /**","     * @attribute index","     * @type Number","     * @readOnly","     *","     * @description Number representing the Widget's ordinal position in its","     * parent Widget.","     */","    index: {","        readOnly: true,","        getter: function () {","","            var parent = this.get(\"parent\"),","                index = -1;","","            if (parent) {","                index = parent.indexOf(this);","            }","","            return index;","","        }","    },","","","    /**","     * @attribute parent","     * @type Widget","     * @readOnly","     *","     * @description Retrieves the parent of the Widget in the object hierarchy.","    */","    parent: {","        readOnly: true","    },","","","    /**","     * @attribute depth","     * @type Number","     * @default -1","     * @readOnly","     *","     * @description Number representing the depth of this Widget relative to","     * the root Widget in the object heirarchy.","     */","    depth: {","        readOnly: true,","        getter: function () {","","            var parent = this.get(\"parent\"),","                root = this.get(\"root\"),","                depth = -1;","","            while (parent) {","","                depth = (depth + 1);","","                if (parent == root) {","                    break;","                }","","                parent = parent.get(\"parent\");","","            }","","            return depth;","","        }","    },","","    /**","     * @attribute root","     * @type Widget","     * @readOnly","     *","     * @description Returns the root Widget in the object hierarchy.  If the","     * ROOT_TYPE property is set, the search for the root Widget will be","     * constrained to parent Widgets of the specified type.","     */","    root: {","        readOnly: true,","        getter: function () {","","            var getParent = function (child) {","","                var parent = child.get(\"parent\"),","                    FnRootType = child.ROOT_TYPE,","                    criteria = parent;","","                if (FnRootType) {","                    criteria = (parent && Y.instanceOf(parent, FnRootType));","                }","","                return (criteria ? getParent(parent) : child);","","            };","","            return getParent(this);","","        }","    }","","};","","Child.prototype = {","","    /**","     * Constructor reference used to determine the root of a Widget-based","     * object tree.","     * <p>","     * Currently used to control the behavior of the <code>root</code>","     * attribute so that recursing up the object heirarchy can be constrained","     * to a specific type of Widget.  Widget authors should set this property","     * to the constructor function for a given Widget implementation.","     * </p>","     *","     * @property ROOT_TYPE","     * @type Object","     */","    ROOT_TYPE: null,","","    /**","     * Returns the node on which to bind delegate listeners.","     *","     * Override of Widget's implementation of _getUIEventNode() to ensure that","     * all event listeners are bound to the Widget's topmost DOM element.","     * This ensures that the firing of each type of Widget UI event (click,","     * mousedown, etc.) is facilitated by a single, top-level, delegated DOM","     * event listener.","     *","     * @method _getUIEventNode","     * @for Widget","     * @protected","     */","    _getUIEventNode: function () {","        var root = this.get(\"root\"),","            returnVal;","","        if (root) {","            returnVal = root.get(\"boundingBox\");","        }","","        return returnVal;","    },","","    /**","    * @method next","    * @description Returns the Widget's next sibling.","    * @param {Boolean} circular Boolean indicating if the parent's first child","    * should be returned if the child has no next sibling.","    * @return {Widget} Widget instance.","    */","    next: function (circular) {","","        var parent = this.get(\"parent\"),","            sibling;","","        if (parent) {","            sibling = parent.item((this.get(\"index\")+1));","        }","","        if (!sibling && circular) {","            sibling = parent.item(0);","        }","","        return sibling;","","    },","","","    /**","    * @method previous","    * @description Returns the Widget's previous sibling.","    * @param {Boolean} circular Boolean indicating if the parent's last child","    * should be returned if the child has no previous sibling.","    * @return {Widget} Widget instance.","    */","    previous: function (circular) {","","        var parent = this.get(\"parent\"),","            index = this.get(\"index\"),","            sibling;","","        if (parent && index > 0) {","            sibling = parent.item([(index-1)]);","        }","","        if (!sibling && circular) {","            sibling = parent.item((parent.size() - 1));","        }","","        return sibling;","","    },","","","    //  Override of Y.WidgetParent.remove()","    //  Sugar implementation allowing a child to remove itself from its parent.","    remove: function (index) {","","        var parent,","            removed;","","        if (Lang.isNumber(index)) {","            removed = Y.WidgetParent.prototype.remove.apply(this, arguments);","        }","        else {","","            parent = this.get(\"parent\");","","            if (parent) {","                removed = parent.remove(this.get(\"index\"));","            }","","        }","","        return removed;","","    },","","","    /**","    * @method isRoot","    * @description Determines if the Widget is the root Widget in the","    * object hierarchy.","    * @return {Boolean} Boolean indicating if Widget is the root Widget in the","    * object hierarchy.","    */","    isRoot: function () {","        return (this == this.get(\"root\"));","    },","","","    /**","    * @method ancestor","    * @description Returns the Widget instance at the specified depth.","    * @param {number} depth Number representing the depth of the ancestor.","    * @return {Widget} Widget instance.","    */","    ancestor: function (depth) {","","        var root = this.get(\"root\"),","            parent;","","        if (this.get(\"depth\") > depth)  {","","            parent = this.get(\"parent\");","","            while (parent != root && parent.get(\"depth\") > depth) {","                parent = parent.get(\"parent\");","            }","","        }","","        return parent;","","    },","","","    /**","     * Updates the UI to reflect the <code>selected</code> attribute value.","     *","     * @method _uiSetChildSelected","     * @protected","     * @param {number} selected The selected value to be reflected in the UI.","     */","    _uiSetChildSelected: function (selected) {","","        var box = this.get(\"boundingBox\"),","            sClassName = this.getClassName(\"selected\");","","        if (selected === 0) {","            box.removeClass(sClassName);","        }","        else {","            box.addClass(sClassName);","        }","","    },","","","    /**","     * Default attribute change listener for the <code>selected</code>","     * attribute, responsible for updating the UI, in response to","     * attribute changes.","     *","     * @method _afterChildSelectedChange","     * @protected","     * @param {EventFacade} event The event facade for the attribute change.","     */","    _afterChildSelectedChange: function (event) {","        this._uiSetChildSelected(event.newVal);","    },","","","    /**","     * Synchronizes the UI to match the WidgetChild state.","     * <p>","     * This method is invoked after bindUI is invoked for the Widget class","     * using YUI's aop infrastructure.","     * </p>","     *","     * @method _syncUIChild","     * @protected","     */","    _syncUIChild: function () {","        this._uiSetChildSelected(this.get(\"selected\"));","    },","","","    /**","     * Binds event listeners responsible for updating the UI state in response","     * to WidgetChild related state changes.","     * <p>","     * This method is invoked after bindUI is invoked for the Widget class","     * using YUI's aop infrastructure.","     * </p>","     * @method _bindUIChild","     * @protected","     */","    _bindUIChild: function () {","        this.after(\"selectedChange\", this._afterChildSelectedChange);","    }","","};","","Y.WidgetChild = Child;","","","}, '3.13.0', {\"requires\": [\"base-build\", \"widget\"]});","","}());"]};
 
11
}
 
12
var __cov_HigjbvdQxsWntIREarA$wg = __coverage__['build/widget-child/widget-child.js'];
 
13
__cov_HigjbvdQxsWntIREarA$wg.s['1']++;YUI.add('widget-child',function(Y,NAME){__cov_HigjbvdQxsWntIREarA$wg.f['1']++;__cov_HigjbvdQxsWntIREarA$wg.s['2']++;var Lang=Y.Lang;__cov_HigjbvdQxsWntIREarA$wg.s['3']++;function Child(){__cov_HigjbvdQxsWntIREarA$wg.f['2']++;__cov_HigjbvdQxsWntIREarA$wg.s['4']++;Y.after(this._syncUIChild,this,'syncUI');__cov_HigjbvdQxsWntIREarA$wg.s['5']++;Y.after(this._bindUIChild,this,'bindUI');}__cov_HigjbvdQxsWntIREarA$wg.s['6']++;Child.ATTRS={selected:{value:0,validator:Lang.isNumber},index:{readOnly:true,getter:function(){__cov_HigjbvdQxsWntIREarA$wg.f['3']++;__cov_HigjbvdQxsWntIREarA$wg.s['7']++;var parent=this.get('parent'),index=-1;__cov_HigjbvdQxsWntIREarA$wg.s['8']++;if(parent){__cov_HigjbvdQxsWntIREarA$wg.b['1'][0]++;__cov_HigjbvdQxsWntIREarA$wg.s['9']++;index=parent.indexOf(this);}else{__cov_HigjbvdQxsWntIREarA$wg.b['1'][1]++;}__cov_HigjbvdQxsWntIREarA$wg.s['10']++;return index;}},parent:{readOnly:true},depth:{readOnly:true,getter:function(){__cov_HigjbvdQxsWntIREarA$wg.f['4']++;__cov_HigjbvdQxsWntIREarA$wg.s['11']++;var parent=this.get('parent'),root=this.get('root'),depth=-1;__cov_HigjbvdQxsWntIREarA$wg.s['12']++;while(parent){__cov_HigjbvdQxsWntIREarA$wg.s['13']++;depth=depth+1;__cov_HigjbvdQxsWntIREarA$wg.s['14']++;if(parent==root){__cov_HigjbvdQxsWntIREarA$wg.b['2'][0]++;__cov_HigjbvdQxsWntIREarA$wg.s['15']++;break;}else{__cov_HigjbvdQxsWntIREarA$wg.b['2'][1]++;}__cov_HigjbvdQxsWntIREarA$wg.s['16']++;parent=parent.get('parent');}__cov_HigjbvdQxsWntIREarA$wg.s['17']++;return depth;}},root:{readOnly:true,getter:function(){__cov_HigjbvdQxsWntIREarA$wg.f['5']++;__cov_HigjbvdQxsWntIREarA$wg.s['18']++;var getParent=function(child){__cov_HigjbvdQxsWntIREarA$wg.f['6']++;__cov_HigjbvdQxsWntIREarA$wg.s['19']++;var parent=child.get('parent'),FnRootType=child.ROOT_TYPE,criteria=parent;__cov_HigjbvdQxsWntIREarA$wg.s['20']++;if(FnRootType){__cov_HigjbvdQxsWntIREarA$wg.b['3'][0]++;__cov_HigjbvdQxsWntIREarA$wg.s['21']++;criteria=(__cov_HigjbvdQxsWntIREarA$wg.b['4'][0]++,parent)&&(__cov_HigjbvdQxsWntIREarA$wg.b['4'][1]++,Y.instanceOf(parent,FnRootType));}else{__cov_HigjbvdQxsWntIREarA$wg.b['3'][1]++;}__cov_HigjbvdQxsWntIREarA$wg.s['22']++;return criteria?(__cov_HigjbvdQxsWntIREarA$wg.b['5'][0]++,getParent(parent)):(__cov_HigjbvdQxsWntIREarA$wg.b['5'][1]++,child);};__cov_HigjbvdQxsWntIREarA$wg.s['23']++;return getParent(this);}}};__cov_HigjbvdQxsWntIREarA$wg.s['24']++;Child.prototype={ROOT_TYPE:null,_getUIEventNode:function(){__cov_HigjbvdQxsWntIREarA$wg.f['7']++;__cov_HigjbvdQxsWntIREarA$wg.s['25']++;var root=this.get('root'),returnVal;__cov_HigjbvdQxsWntIREarA$wg.s['26']++;if(root){__cov_HigjbvdQxsWntIREarA$wg.b['6'][0]++;__cov_HigjbvdQxsWntIREarA$wg.s['27']++;returnVal=root.get('boundingBox');}else{__cov_HigjbvdQxsWntIREarA$wg.b['6'][1]++;}__cov_HigjbvdQxsWntIREarA$wg.s['28']++;return returnVal;},next:function(circular){__cov_HigjbvdQxsWntIREarA$wg.f['8']++;__cov_HigjbvdQxsWntIREarA$wg.s['29']++;var parent=this.get('parent'),sibling;__cov_HigjbvdQxsWntIREarA$wg.s['30']++;if(parent){__cov_HigjbvdQxsWntIREarA$wg.b['7'][0]++;__cov_HigjbvdQxsWntIREarA$wg.s['31']++;sibling=parent.item(this.get('index')+1);}else{__cov_HigjbvdQxsWntIREarA$wg.b['7'][1]++;}__cov_HigjbvdQxsWntIREarA$wg.s['32']++;if((__cov_HigjbvdQxsWntIREarA$wg.b['9'][0]++,!sibling)&&(__cov_HigjbvdQxsWntIREarA$wg.b['9'][1]++,circular)){__cov_HigjbvdQxsWntIREarA$wg.b['8'][0]++;__cov_HigjbvdQxsWntIREarA$wg.s['33']++;sibling=parent.item(0);}else{__cov_HigjbvdQxsWntIREarA$wg.b['8'][1]++;}__cov_HigjbvdQxsWntIREarA$wg.s['34']++;return sibling;},previous:function(circular){__cov_HigjbvdQxsWntIREarA$wg.f['9']++;__cov_HigjbvdQxsWntIREarA$wg.s['35']++;var parent=this.get('parent'),index=this.get('index'),sibling;__cov_HigjbvdQxsWntIREarA$wg.s['36']++;if((__cov_HigjbvdQxsWntIREarA$wg.b['11'][0]++,parent)&&(__cov_HigjbvdQxsWntIREarA$wg.b['11'][1]++,index>0)){__cov_HigjbvdQxsWntIREarA$wg.b['10'][0]++;__cov_HigjbvdQxsWntIREarA$wg.s['37']++;sibling=parent.item([index-1]);}else{__cov_HigjbvdQxsWntIREarA$wg.b['10'][1]++;}__cov_HigjbvdQxsWntIREarA$wg.s['38']++;if((__cov_HigjbvdQxsWntIREarA$wg.b['13'][0]++,!sibling)&&(__cov_HigjbvdQxsWntIREarA$wg.b['13'][1]++,circular)){__cov_HigjbvdQxsWntIREarA$wg.b['12'][0]++;__cov_HigjbvdQxsWntIREarA$wg.s['39']++;sibling=parent.item(parent.size()-1);}else{__cov_HigjbvdQxsWntIREarA$wg.b['12'][1]++;}__cov_HigjbvdQxsWntIREarA$wg.s['40']++;return sibling;},remove:function(index){__cov_HigjbvdQxsWntIREarA$wg.f['10']++;__cov_HigjbvdQxsWntIREarA$wg.s['41']++;var parent,removed;__cov_HigjbvdQxsWntIREarA$wg.s['42']++;if(Lang.isNumber(index)){__cov_HigjbvdQxsWntIREarA$wg.b['14'][0]++;__cov_HigjbvdQxsWntIREarA$wg.s['43']++;removed=Y.WidgetParent.prototype.remove.apply(this,arguments);}else{__cov_HigjbvdQxsWntIREarA$wg.b['14'][1]++;__cov_HigjbvdQxsWntIREarA$wg.s['44']++;parent=this.get('parent');__cov_HigjbvdQxsWntIREarA$wg.s['45']++;if(parent){__cov_HigjbvdQxsWntIREarA$wg.b['15'][0]++;__cov_HigjbvdQxsWntIREarA$wg.s['46']++;removed=parent.remove(this.get('index'));}else{__cov_HigjbvdQxsWntIREarA$wg.b['15'][1]++;}}__cov_HigjbvdQxsWntIREarA$wg.s['47']++;return removed;},isRoot:function(){__cov_HigjbvdQxsWntIREarA$wg.f['11']++;__cov_HigjbvdQxsWntIREarA$wg.s['48']++;return this==this.get('root');},ancestor:function(depth){__cov_HigjbvdQxsWntIREarA$wg.f['12']++;__cov_HigjbvdQxsWntIREarA$wg.s['49']++;var root=this.get('root'),parent;__cov_HigjbvdQxsWntIREarA$wg.s['50']++;if(this.get('depth')>depth){__cov_HigjbvdQxsWntIREarA$wg.b['16'][0]++;__cov_HigjbvdQxsWntIREarA$wg.s['51']++;parent=this.get('parent');__cov_HigjbvdQxsWntIREarA$wg.s['52']++;while((__cov_HigjbvdQxsWntIREarA$wg.b['17'][0]++,parent!=root)&&(__cov_HigjbvdQxsWntIREarA$wg.b['17'][1]++,parent.get('depth')>depth)){__cov_HigjbvdQxsWntIREarA$wg.s['53']++;parent=parent.get('parent');}}else{__cov_HigjbvdQxsWntIREarA$wg.b['16'][1]++;}__cov_HigjbvdQxsWntIREarA$wg.s['54']++;return parent;},_uiSetChildSelected:function(selected){__cov_HigjbvdQxsWntIREarA$wg.f['13']++;__cov_HigjbvdQxsWntIREarA$wg.s['55']++;var box=this.get('boundingBox'),sClassName=this.getClassName('selected');__cov_HigjbvdQxsWntIREarA$wg.s['56']++;if(selected===0){__cov_HigjbvdQxsWntIREarA$wg.b['18'][0]++;__cov_HigjbvdQxsWntIREarA$wg.s['57']++;box.removeClass(sClassName);}else{__cov_HigjbvdQxsWntIREarA$wg.b['18'][1]++;__cov_HigjbvdQxsWntIREarA$wg.s['58']++;box.addClass(sClassName);}},_afterChildSelectedChange:function(event){__cov_HigjbvdQxsWntIREarA$wg.f['14']++;__cov_HigjbvdQxsWntIREarA$wg.s['59']++;this._uiSetChildSelected(event.newVal);},_syncUIChild:function(){__cov_HigjbvdQxsWntIREarA$wg.f['15']++;__cov_HigjbvdQxsWntIREarA$wg.s['60']++;this._uiSetChildSelected(this.get('selected'));},_bindUIChild:function(){__cov_HigjbvdQxsWntIREarA$wg.f['16']++;__cov_HigjbvdQxsWntIREarA$wg.s['61']++;this.after('selectedChange',this._afterChildSelectedChange);}};__cov_HigjbvdQxsWntIREarA$wg.s['62']++;Y.WidgetChild=Child;},'3.13.0',{'requires':['base-build','widget']});