NOBUG: Fixed file access permissions
[moodle.git] / lib / yuilib / 3.13.0 / datatable-table / datatable-table-coverage.js
blob253a6ced3ee1aeb9c8a45b80dfd886312174432a
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 */
8 if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
9 if (!__coverage__['build/datatable-table/datatable-table.js']) {
10    __coverage__['build/datatable-table/datatable-table.js'] = {"path":"build/datatable-table/datatable-table.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,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0},"b":{"1":[0,0,0],"2":[0,0,0],"3":[0,0],"4":[0,0],"5":[0,0,0],"6":[0,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],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":46}}},"2":{"name":"(anonymous_2)","line":121,"loc":{"start":{"line":121,"column":13},"end":{"line":121,"column":42}}},"3":{"name":"(anonymous_3)","line":140,"loc":{"start":{"line":140,"column":18},"end":{"line":140,"column":30}}},"4":{"name":"(anonymous_4)","line":163,"loc":{"start":{"line":163,"column":15},"end":{"line":163,"column":27}}},"5":{"name":"(anonymous_5)","line":181,"loc":{"start":{"line":181,"column":12},"end":{"line":181,"column":32}}},"6":{"name":"(anonymous_6)","line":198,"loc":{"start":{"line":198,"column":25},"end":{"line":198,"column":38}}},"7":{"name":"(anonymous_7)","line":210,"loc":{"start":{"line":210,"column":25},"end":{"line":210,"column":38}}},"8":{"name":"(anonymous_8)","line":222,"loc":{"start":{"line":222,"column":23},"end":{"line":222,"column":36}}},"9":{"name":"(anonymous_9)","line":233,"loc":{"start":{"line":233,"column":13},"end":{"line":233,"column":25}}},"10":{"name":"(anonymous_10)","line":257,"loc":{"start":{"line":257,"column":18},"end":{"line":257,"column":30}}},"11":{"name":"(anonymous_11)","line":271,"loc":{"start":{"line":271,"column":22},"end":{"line":271,"column":35}}},"12":{"name":"(anonymous_12)","line":283,"loc":{"start":{"line":283,"column":24},"end":{"line":283,"column":37}}},"13":{"name":"(anonymous_13)","line":295,"loc":{"start":{"line":295,"column":24},"end":{"line":295,"column":37}}},"14":{"name":"(anonymous_14)","line":313,"loc":{"start":{"line":313,"column":23},"end":{"line":313,"column":36}}},"15":{"name":"(anonymous_15)","line":368,"loc":{"start":{"line":368,"column":16},"end":{"line":368,"column":28}}},"16":{"name":"(anonymous_16)","line":401,"loc":{"start":{"line":401,"column":28},"end":{"line":401,"column":40}}},"17":{"name":"process","line":405,"loc":{"start":{"line":405,"column":8},"end":{"line":405,"column":31}}},"18":{"name":"(anonymous_18)","line":441,"loc":{"start":{"line":441,"column":17},"end":{"line":441,"column":29}}},"19":{"name":"(anonymous_19)","line":459,"loc":{"start":{"line":459,"column":17},"end":{"line":459,"column":35}}},"20":{"name":"(anonymous_20)","line":477,"loc":{"start":{"line":477,"column":22},"end":{"line":477,"column":35}}},"21":{"name":"(anonymous_21)","line":505,"loc":{"start":{"line":505,"column":12},"end":{"line":505,"column":24}}},"22":{"name":"(anonymous_22)","line":531,"loc":{"start":{"line":531,"column":19},"end":{"line":531,"column":42}}},"23":{"name":"(anonymous_23)","line":561,"loc":{"start":{"line":561,"column":19},"end":{"line":561,"column":38}}},"24":{"name":"(anonymous_24)","line":577,"loc":{"start":{"line":577,"column":17},"end":{"line":577,"column":34}}},"25":{"name":"(anonymous_25)","line":598,"loc":{"start":{"line":598,"column":19},"end":{"line":598,"column":34}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":756,"column":111}},"2":{"start":{"line":11,"column":0},"end":{"line":16,"column":34}},"3":{"start":{"line":29,"column":0},"end":{"line":751,"column":3}},"4":{"start":{"line":122,"column":8},"end":{"line":123,"column":58}},"5":{"start":{"line":142,"column":8},"end":{"line":144,"column":42}},"6":{"start":{"line":146,"column":8},"end":{"line":152,"column":9}},"7":{"start":{"line":147,"column":12},"end":{"line":147,"column":60}},"8":{"start":{"line":149,"column":12},"end":{"line":151,"column":67}},"9":{"start":{"line":164,"column":8},"end":{"line":165,"column":60}},"10":{"start":{"line":182,"column":8},"end":{"line":183,"column":57}},"11":{"start":{"line":199,"column":8},"end":{"line":199,"column":37}},"12":{"start":{"line":211,"column":8},"end":{"line":211,"column":37}},"13":{"start":{"line":223,"column":8},"end":{"line":223,"column":35}},"14":{"start":{"line":234,"column":8},"end":{"line":234,"column":18}},"15":{"start":{"line":236,"column":8},"end":{"line":246,"column":9}},"16":{"start":{"line":237,"column":12},"end":{"line":237,"column":53}},"17":{"start":{"line":239,"column":12},"end":{"line":245,"column":15}},"18":{"start":{"line":258,"column":8},"end":{"line":260,"column":20}},"19":{"start":{"line":272,"column":8},"end":{"line":272,"column":24}},"20":{"start":{"line":284,"column":8},"end":{"line":284,"column":24}},"21":{"start":{"line":296,"column":8},"end":{"line":296,"column":24}},"22":{"start":{"line":314,"column":8},"end":{"line":315,"column":36}},"23":{"start":{"line":317,"column":8},"end":{"line":319,"column":9}},"24":{"start":{"line":318,"column":12},"end":{"line":318,"column":49}},"25":{"start":{"line":321,"column":8},"end":{"line":321,"column":47}},"26":{"start":{"line":322,"column":8},"end":{"line":322,"column":27}},"27":{"start":{"line":323,"column":8},"end":{"line":323,"column":41}},"28":{"start":{"line":325,"column":8},"end":{"line":325,"column":48}},"29":{"start":{"line":326,"column":8},"end":{"line":326,"column":48}},"30":{"start":{"line":327,"column":8},"end":{"line":327,"column":44}},"31":{"start":{"line":329,"column":8},"end":{"line":335,"column":9}},"32":{"start":{"line":330,"column":12},"end":{"line":332,"column":13}},"33":{"start":{"line":331,"column":16},"end":{"line":331,"column":77}},"34":{"start":{"line":334,"column":12},"end":{"line":334,"column":59}},"35":{"start":{"line":337,"column":8},"end":{"line":343,"column":9}},"36":{"start":{"line":338,"column":12},"end":{"line":340,"column":13}},"37":{"start":{"line":339,"column":16},"end":{"line":339,"column":77}},"38":{"start":{"line":342,"column":12},"end":{"line":342,"column":59}},"39":{"start":{"line":345,"column":8},"end":{"line":345,"column":44}},"40":{"start":{"line":347,"column":8},"end":{"line":353,"column":9}},"41":{"start":{"line":348,"column":12},"end":{"line":350,"column":13}},"42":{"start":{"line":349,"column":16},"end":{"line":349,"column":73}},"43":{"start":{"line":352,"column":12},"end":{"line":352,"column":57}},"44":{"start":{"line":355,"column":8},"end":{"line":357,"column":9}},"45":{"start":{"line":356,"column":12},"end":{"line":356,"column":45}},"46":{"start":{"line":359,"column":8},"end":{"line":359,"column":23}},"47":{"start":{"line":369,"column":8},"end":{"line":371,"column":9}},"48":{"start":{"line":370,"column":12},"end":{"line":370,"column":32}},"49":{"start":{"line":372,"column":8},"end":{"line":372,"column":25}},"50":{"start":{"line":374,"column":8},"end":{"line":376,"column":9}},"51":{"start":{"line":375,"column":12},"end":{"line":375,"column":32}},"52":{"start":{"line":377,"column":8},"end":{"line":377,"column":25}},"53":{"start":{"line":379,"column":8},"end":{"line":381,"column":9}},"54":{"start":{"line":380,"column":12},"end":{"line":380,"column":32}},"55":{"start":{"line":382,"column":8},"end":{"line":382,"column":25}},"56":{"start":{"line":384,"column":8},"end":{"line":387,"column":9}},"57":{"start":{"line":385,"column":12},"end":{"line":385,"column":40}},"58":{"start":{"line":386,"column":12},"end":{"line":386,"column":38}},"59":{"start":{"line":389,"column":8},"end":{"line":391,"column":9}},"60":{"start":{"line":390,"column":12},"end":{"line":390,"column":50}},"61":{"start":{"line":402,"column":8},"end":{"line":403,"column":32}},"62":{"start":{"line":405,"column":8},"end":{"line":417,"column":9}},"63":{"start":{"line":406,"column":12},"end":{"line":406,"column":28}},"64":{"start":{"line":408,"column":12},"end":{"line":416,"column":13}},"65":{"start":{"line":409,"column":16},"end":{"line":409,"column":30}},"66":{"start":{"line":411,"column":16},"end":{"line":415,"column":17}},"67":{"start":{"line":412,"column":20},"end":{"line":412,"column":42}},"68":{"start":{"line":414,"column":20},"end":{"line":414,"column":45}},"69":{"start":{"line":419,"column":8},"end":{"line":421,"column":9}},"70":{"start":{"line":420,"column":12},"end":{"line":420,"column":29}},"71":{"start":{"line":431,"column":8},"end":{"line":431,"column":45}},"72":{"start":{"line":442,"column":8},"end":{"line":448,"column":11}},"73":{"start":{"line":460,"column":8},"end":{"line":460,"column":32}},"74":{"start":{"line":462,"column":8},"end":{"line":462,"column":27}},"75":{"start":{"line":464,"column":8},"end":{"line":464,"column":38}},"76":{"start":{"line":466,"column":8},"end":{"line":466,"column":71}},"77":{"start":{"line":478,"column":8},"end":{"line":479,"column":28}},"78":{"start":{"line":481,"column":8},"end":{"line":483,"column":9}},"79":{"start":{"line":482,"column":12},"end":{"line":482,"column":37}},"80":{"start":{"line":485,"column":8},"end":{"line":487,"column":9}},"81":{"start":{"line":486,"column":12},"end":{"line":486,"column":37}},"82":{"start":{"line":489,"column":8},"end":{"line":495,"column":9}},"83":{"start":{"line":490,"column":12},"end":{"line":492,"column":13}},"84":{"start":{"line":491,"column":16},"end":{"line":491,"column":42}},"85":{"start":{"line":494,"column":12},"end":{"line":494,"column":37}},"86":{"start":{"line":506,"column":8},"end":{"line":517,"column":9}},"87":{"start":{"line":507,"column":12},"end":{"line":516,"column":15}},"88":{"start":{"line":519,"column":8},"end":{"line":519,"column":20}},"89":{"start":{"line":532,"column":8},"end":{"line":533,"column":39}},"90":{"start":{"line":535,"column":8},"end":{"line":551,"column":9}},"91":{"start":{"line":536,"column":12},"end":{"line":543,"column":13}},"92":{"start":{"line":537,"column":16},"end":{"line":540,"column":24}},"93":{"start":{"line":542,"column":16},"end":{"line":542,"column":48}},"94":{"start":{"line":545,"column":12},"end":{"line":545,"column":41}},"95":{"start":{"line":547,"column":15},"end":{"line":551,"column":9}},"96":{"start":{"line":548,"column":12},"end":{"line":548,"column":33}},"97":{"start":{"line":550,"column":12},"end":{"line":550,"column":36}},"98":{"start":{"line":562,"column":8},"end":{"line":566,"column":9}},"99":{"start":{"line":563,"column":12},"end":{"line":563,"column":60}},"100":{"start":{"line":565,"column":12},"end":{"line":565,"column":54}},"101":{"start":{"line":578,"column":8},"end":{"line":578,"column":35}},"102":{"start":{"line":581,"column":8},"end":{"line":585,"column":19}},"103":{"start":{"line":587,"column":8},"end":{"line":587,"column":39}},"104":{"start":{"line":599,"column":8},"end":{"line":599,"column":55}}},"branchMap":{"1":{"line":122,"type":"binary-expr","locations":[{"start":{"line":122,"column":15},"end":{"line":122,"column":24}},{"start":{"line":122,"column":28},"end":{"line":122,"column":45}},{"start":{"line":123,"column":12},"end":{"line":123,"column":57}}]},"2":{"line":143,"type":"binary-expr","locations":[{"start":{"line":143,"column":20},"end":{"line":143,"column":24}},{"start":{"line":143,"column":28},"end":{"line":143,"column":49}},{"start":{"line":144,"column":20},"end":{"line":144,"column":41}}]},"3":{"line":146,"type":"if","locations":[{"start":{"line":146,"column":8},"end":{"line":146,"column":8}},{"start":{"line":146,"column":8},"end":{"line":146,"column":8}}]},"4":{"line":146,"type":"binary-expr","locations":[{"start":{"line":146,"column":12},"end":{"line":146,"column":16}},{"start":{"line":146,"column":20},"end":{"line":146,"column":37}}]},"5":{"line":164,"type":"binary-expr","locations":[{"start":{"line":164,"column":15},"end":{"line":164,"column":24}},{"start":{"line":164,"column":28},"end":{"line":164,"column":47}},{"start":{"line":165,"column":12},"end":{"line":165,"column":59}}]},"6":{"line":182,"type":"binary-expr","locations":[{"start":{"line":182,"column":15},"end":{"line":182,"column":24}},{"start":{"line":182,"column":28},"end":{"line":182,"column":44}},{"start":{"line":183,"column":12},"end":{"line":183,"column":56}}]},"7":{"line":236,"type":"if","locations":[{"start":{"line":236,"column":8},"end":{"line":236,"column":8}},{"start":{"line":236,"column":8},"end":{"line":236,"column":8}}]},"8":{"line":317,"type":"if","locations":[{"start":{"line":317,"column":8},"end":{"line":317,"column":8}},{"start":{"line":317,"column":8},"end":{"line":317,"column":8}}]},"9":{"line":321,"type":"binary-expr","locations":[{"start":{"line":321,"column":22},"end":{"line":321,"column":38}},{"start":{"line":321,"column":42},"end":{"line":321,"column":46}}]},"10":{"line":329,"type":"if","locations":[{"start":{"line":329,"column":8},"end":{"line":329,"column":8}},{"start":{"line":329,"column":8},"end":{"line":329,"column":8}}]},"11":{"line":329,"type":"binary-expr","locations":[{"start":{"line":329,"column":12},"end":{"line":329,"column":21}},{"start":{"line":329,"column":25},"end":{"line":329,"column":37}}]},"12":{"line":330,"type":"if","locations":[{"start":{"line":330,"column":12},"end":{"line":330,"column":12}},{"start":{"line":330,"column":12},"end":{"line":330,"column":12}}]},"13":{"line":337,"type":"if","locations":[{"start":{"line":337,"column":8},"end":{"line":337,"column":8}},{"start":{"line":337,"column":8},"end":{"line":337,"column":8}}]},"14":{"line":337,"type":"binary-expr","locations":[{"start":{"line":337,"column":12},"end":{"line":337,"column":21}},{"start":{"line":337,"column":25},"end":{"line":337,"column":37}}]},"15":{"line":338,"type":"if","locations":[{"start":{"line":338,"column":12},"end":{"line":338,"column":12}},{"start":{"line":338,"column":12},"end":{"line":338,"column":12}}]},"16":{"line":347,"type":"if","locations":[{"start":{"line":347,"column":8},"end":{"line":347,"column":8}},{"start":{"line":347,"column":8},"end":{"line":347,"column":8}}]},"17":{"line":347,"type":"binary-expr","locations":[{"start":{"line":347,"column":12},"end":{"line":347,"column":21}},{"start":{"line":347,"column":25},"end":{"line":347,"column":35}}]},"18":{"line":348,"type":"if","locations":[{"start":{"line":348,"column":12},"end":{"line":348,"column":12}},{"start":{"line":348,"column":12},"end":{"line":348,"column":12}}]},"19":{"line":355,"type":"if","locations":[{"start":{"line":355,"column":8},"end":{"line":355,"column":8}},{"start":{"line":355,"column":8},"end":{"line":355,"column":8}}]},"20":{"line":369,"type":"if","locations":[{"start":{"line":369,"column":8},"end":{"line":369,"column":8}},{"start":{"line":369,"column":8},"end":{"line":369,"column":8}}]},"21":{"line":369,"type":"binary-expr","locations":[{"start":{"line":369,"column":12},"end":{"line":369,"column":21}},{"start":{"line":369,"column":25},"end":{"line":369,"column":42}}]},"22":{"line":374,"type":"if","locations":[{"start":{"line":374,"column":8},"end":{"line":374,"column":8}},{"start":{"line":374,"column":8},"end":{"line":374,"column":8}}]},"23":{"line":374,"type":"binary-expr","locations":[{"start":{"line":374,"column":12},"end":{"line":374,"column":21}},{"start":{"line":374,"column":25},"end":{"line":374,"column":42}}]},"24":{"line":379,"type":"if","locations":[{"start":{"line":379,"column":8},"end":{"line":379,"column":8}},{"start":{"line":379,"column":8},"end":{"line":379,"column":8}}]},"25":{"line":379,"type":"binary-expr","locations":[{"start":{"line":379,"column":12},"end":{"line":379,"column":21}},{"start":{"line":379,"column":25},"end":{"line":379,"column":42}}]},"26":{"line":384,"type":"if","locations":[{"start":{"line":384,"column":8},"end":{"line":384,"column":8}},{"start":{"line":384,"column":8},"end":{"line":384,"column":8}}]},"27":{"line":389,"type":"if","locations":[{"start":{"line":389,"column":8},"end":{"line":389,"column":8}},{"start":{"line":389,"column":8},"end":{"line":389,"column":8}}]},"28":{"line":411,"type":"if","locations":[{"start":{"line":411,"column":16},"end":{"line":411,"column":16}},{"start":{"line":411,"column":16},"end":{"line":411,"column":16}}]},"29":{"line":419,"type":"if","locations":[{"start":{"line":419,"column":8},"end":{"line":419,"column":8}},{"start":{"line":419,"column":8},"end":{"line":419,"column":8}}]},"30":{"line":481,"type":"if","locations":[{"start":{"line":481,"column":8},"end":{"line":481,"column":8}},{"start":{"line":481,"column":8},"end":{"line":481,"column":8}}]},"31":{"line":485,"type":"if","locations":[{"start":{"line":485,"column":8},"end":{"line":485,"column":8}},{"start":{"line":485,"column":8},"end":{"line":485,"column":8}}]},"32":{"line":489,"type":"if","locations":[{"start":{"line":489,"column":8},"end":{"line":489,"column":8}},{"start":{"line":489,"column":8},"end":{"line":489,"column":8}}]},"33":{"line":490,"type":"if","locations":[{"start":{"line":490,"column":12},"end":{"line":490,"column":12}},{"start":{"line":490,"column":12},"end":{"line":490,"column":12}}]},"34":{"line":506,"type":"if","locations":[{"start":{"line":506,"column":8},"end":{"line":506,"column":8}},{"start":{"line":506,"column":8},"end":{"line":506,"column":8}}]},"35":{"line":535,"type":"if","locations":[{"start":{"line":535,"column":8},"end":{"line":535,"column":8}},{"start":{"line":535,"column":8},"end":{"line":535,"column":8}}]},"36":{"line":536,"type":"if","locations":[{"start":{"line":536,"column":12},"end":{"line":536,"column":12}},{"start":{"line":536,"column":12},"end":{"line":536,"column":12}}]},"37":{"line":547,"type":"if","locations":[{"start":{"line":547,"column":15},"end":{"line":547,"column":15}},{"start":{"line":547,"column":15},"end":{"line":547,"column":15}}]},"38":{"line":562,"type":"if","locations":[{"start":{"line":562,"column":8},"end":{"line":562,"column":8}},{"start":{"line":562,"column":8},"end":{"line":562,"column":8}}]},"39":{"line":581,"type":"cond-expr","locations":[{"start":{"line":581,"column":41},"end":{"line":581,"column":43}},{"start":{"line":582,"column":12},"end":{"line":585,"column":17}}]},"40":{"line":583,"type":"binary-expr","locations":[{"start":{"line":583,"column":14},"end":{"line":583,"column":69}},{"start":{"line":583,"column":71},"end":{"line":583,"column":72}}]},"41":{"line":584,"type":"binary-expr","locations":[{"start":{"line":584,"column":14},"end":{"line":584,"column":69}},{"start":{"line":584,"column":71},"end":{"line":584,"column":72}}]},"42":{"line":599,"type":"binary-expr","locations":[{"start":{"line":599,"column":15},"end":{"line":599,"column":30}},{"start":{"line":599,"column":34},"end":{"line":599,"column":54}}]}},"code":["(function () { YUI.add('datatable-table', function (Y, NAME) {","","/**","View class responsible for rendering a `<table>` from provided data.  Used as","the default `view` for `Y.DataTable.Base` and `Y.DataTable` classes.","","@module datatable","@submodule datatable-table","@since 3.6.0","**/","var toArray = Y.Array,","    YLang   = Y.Lang,","    fromTemplate = YLang.sub,","","    isArray    = YLang.isArray,","    isFunction = YLang.isFunction;","","/**","View class responsible for rendering a `<table>` from provided data.  Used as","the default `view` for `Y.DataTable.Base` and `Y.DataTable` classes.","","","","@class TableView","@namespace DataTable","@extends View","@since 3.6.0","**/","Y.namespace('DataTable').TableView = Y.Base.create('table', Y.View, [], {","","    /**","    The HTML template used to create the caption Node if the `caption`","    attribute is set.","","    @property CAPTION_TEMPLATE","    @type {HTML}","    @default '<caption class=\"{className}\"/>'","    @since 3.6.0","    **/","    CAPTION_TEMPLATE: '<caption class=\"{className}\"/>',","","    /**","    The HTML template used to create the table Node.","","    @property TABLE_TEMPLATE","    @type {HTML}","    @default '<table cellspacing=\"0\" class=\"{className}\"/>'","    @since 3.6.0","    **/","    TABLE_TEMPLATE  : '<table cellspacing=\"0\" class=\"{className}\"/>',","","    /**","    The object or instance of the class assigned to `bodyView` that is","    responsible for rendering and managing the table's `<tbody>`(s) and its","    content.","","    @property body","    @type {Object}","    @default undefined (initially unset)","    @since 3.5.0","    **/","    //body: null,","","    /**","    The object or instance of the class assigned to `footerView` that is","    responsible for rendering and managing the table's `<tfoot>` and its","    content.","","    @property foot","    @type {Object}","    @default undefined (initially unset)","    @since 3.5.0","    **/","    //foot: null,","","    /**","    The object or instance of the class assigned to `headerView` that is","    responsible for rendering and managing the table's `<thead>` and its","    content.","","    @property head","    @type {Object}","    @default undefined (initially unset)","    @since 3.5.0","    **/","    //head: null,","","    //-----------------------------------------------------------------------//","    // Public methods","    //-----------------------------------------------------------------------//","","    /**","    Returns the `<td>` Node from the given row and column index.  Alternately,","    the `seed` can be a Node.  If so, the nearest ancestor cell is returned.","    If the `seed` is a cell, it is returned.  If there is no cell at the given","    coordinates, `null` is returned.","","    Optionally, include an offset array or string to return a cell near the","    cell identified by the `seed`.  The offset can be an array containing the","    number of rows to shift followed by the number of columns to shift, or one","    of \"above\", \"below\", \"next\", or \"previous\".","","    <pre><code>// Previous cell in the previous row","    var cell = table.getCell(e.target, [-1, -1]);","","    // Next cell","    var cell = table.getCell(e.target, 'next');","    var cell = table.getCell(e.taregt, [0, 1];</pre></code>","","    This is actually just a pass through to the `bodyView` instance's method","    by the same name.","","    @method getCell","    @param {Number[]|Node} seed Array of row and column indexes, or a Node that","        is either the cell itself or a descendant of one.","    @param {Number[]|String} [shift] Offset by which to identify the returned","        cell Node","    @return {Node}","    @since 3.5.0","    **/","    getCell: function (/* seed, shift */) {","        return this.body && this.body.getCell &&","            this.body.getCell.apply(this.body, arguments);","    },","","    /**","    Returns the generated CSS classname based on the input.  If the `host`","    attribute is configured, it will attempt to relay to its `getClassName`","    or use its static `NAME` property as a string base.","","    If `host` is absent or has neither method nor `NAME`, a CSS classname","    will be generated using this class's `NAME`.","","    @method getClassName","    @param {String} token* Any number of token strings to assemble the","        classname from.","    @return {String}","    @protected","    **/","    getClassName: function () {","        // TODO: add attr with setter for host?","        var host = this.host,","            NAME = (host && host.constructor.NAME) ||","                    this.constructor.NAME;","","        if (host && host.getClassName) {","            return host.getClassName.apply(host, arguments);","        } else {","            return Y.ClassNameManager.getClassName","                .apply(Y.ClassNameManager,","                       [NAME].concat(toArray(arguments, 0, true)));","        }","    },","","    /**","    Relays call to the `bodyView`'s `getRecord` method if it has one.","","    @method getRecord","    @param {String|Node} seed Node or identifier for a row or child element","    @return {Model}","    @since 3.6.0","    **/","    getRecord: function () {","        return this.body && this.body.getRecord &&","            this.body.getRecord.apply(this.body, arguments);","    },","","    /**","    Returns the `<tr>` Node from the given row index, Model, or Model's","    `clientId`.  If the rows haven't been rendered yet, or if the row can't be","    found by the input, `null` is returned.","","    This is actually just a pass through to the `bodyView` instance's method","    by the same name.","","    @method getRow","    @param {Number|String|Model} id Row index, Model instance, or clientId","    @return {Node}","    @since 3.5.0","    **/","    getRow: function (/* id */) {","        return this.body && this.body.getRow &&","            this.body.getRow.apply(this.body, arguments);","    },","","","    //-----------------------------------------------------------------------//","    // Protected and private methods","    //-----------------------------------------------------------------------//","    /**","    Updates the table's `summary` attribute.","","    @method _afterSummaryChange","    @param {EventHandle} e The change event","    @protected","    @since 3.6.0","    **/","    _afterSummaryChange: function (e) {","        this._uiSetSummary(e.newVal);","    },","","    /**","    Updates the table's `<caption>`.","","    @method _afterCaptionChange","    @param {EventHandle} e The change event","    @protected","    @since 3.6.0","    **/","    _afterCaptionChange: function (e) {","        this._uiSetCaption(e.newVal);","    },","","    /**","    Updates the table's width.","","    @method _afterWidthChange","    @param {EventHandle} e The change event","    @protected","    @since 3.6.0","    **/","    _afterWidthChange: function (e) {","        this._uiSetWidth(e.newVal);","    },","","    /**","    Attaches event subscriptions to relay attribute changes to the child Views.","","    @method _bindUI","    @protected","    @since 3.6.0","    **/","    _bindUI: function () {","        var relay;","","        if (!this._eventHandles) {","            relay = Y.bind('_relayAttrChange', this);","","            this._eventHandles = this.after({","                columnsChange  : relay,","                modelListChange: relay,","                summaryChange  : Y.bind('_afterSummaryChange', this),","                captionChange  : Y.bind('_afterCaptionChange', this),","                widthChange    : Y.bind('_afterWidthChange', this)","            });","        }","    },","","    /**","    Creates the `<table>`.","","    @method _createTable","    @return {Node} The `<table>` node","    @protected","    @since 3.5.0","    **/","    _createTable: function () {","        return Y.Node.create(fromTemplate(this.TABLE_TEMPLATE, {","            className: this.getClassName('table')","        })).empty();","    },","","    /**","    Calls `render()` on the `bodyView` class instance.","","    @method _defRenderBodyFn","    @param {EventFacade} e The renderBody event","    @protected","    @since 3.5.0","    **/","    _defRenderBodyFn: function (e) {","        e.view.render();","    },","","    /**","    Calls `render()` on the `footerView` class instance.","","    @method _defRenderFooterFn","    @param {EventFacade} e The renderFooter event","    @protected","    @since 3.5.0","    **/","    _defRenderFooterFn: function (e) {","        e.view.render();","    },","","    /**","    Calls `render()` on the `headerView` class instance.","","    @method _defRenderHeaderFn","    @param {EventFacade} e The renderHeader event","    @protected","    @since 3.5.0","    **/","    _defRenderHeaderFn: function (e) {","        e.view.render();","    },","","    /**","    Renders the `<table>` and, if there are associated Views, the `<thead>`,","    `<tfoot>`, and `<tbody>` (empty until `syncUI`).","","    Assigns the generated table nodes to the `tableNode`, `_theadNode`,","    `_tfootNode`, and `_tbodyNode` properties.  Assigns the instantiated Views","    to the `head`, `foot`, and `body` properties.","","","    @method _defRenderTableFn","    @param {EventFacade} e The renderTable event","    @protected","    @since 3.5.0","    **/","    _defRenderTableFn: function (e) {","        var container = this.get('container'),","            attrs = this.getAttrs();","","        if (!this.tableNode) {","            this.tableNode = this._createTable();","        }","","        attrs.host  = this.get('host') || this;","        attrs.table = this;","        attrs.container = this.tableNode;","","        this._uiSetCaption(this.get('caption'));","        this._uiSetSummary(this.get('summary'));","        this._uiSetWidth(this.get('width'));","","        if (this.head || e.headerView) {","            if (!this.head) {","                this.head = new e.headerView(Y.merge(attrs, e.headerConfig));","            }","","            this.fire('renderHeader', { view: this.head });","        }","","        if (this.foot || e.footerView) {","            if (!this.foot) {","                this.foot = new e.footerView(Y.merge(attrs, e.footerConfig));","            }","","            this.fire('renderFooter', { view: this.foot });","        }","","        attrs.columns = this.displayColumns;","","        if (this.body || e.bodyView) {","            if (!this.body) {","                this.body = new e.bodyView(Y.merge(attrs, e.bodyConfig));","            }","","            this.fire('renderBody', { view: this.body });","        }","","        if (!container.contains(this.tableNode)) {","            container.append(this.tableNode);","        }","","        this._bindUI();","    },","","    /**","    Cleans up state, destroys child views, etc.","","    @method destructor","    @protected","    **/","    destructor: function () {","        if (this.head && this.head.destroy) {","            this.head.destroy();","        }","        delete this.head;","","        if (this.foot && this.foot.destroy) {","            this.foot.destroy();","        }","        delete this.foot;","","        if (this.body && this.body.destroy) {","            this.body.destroy();","        }","        delete this.body;","","        if (this._eventHandles) {","            this._eventHandles.detach();","            delete this._eventHandles;","        }","","        if (this.tableNode) {","            this.tableNode.remove().destroy(true);","        }","    },","","    /**","    Processes the full column array, distilling the columns down to those that","    correspond to cell data columns.","","    @method _extractDisplayColumns","    @protected","    **/","    _extractDisplayColumns: function () {","        var columns = this.get('columns'),","            displayColumns = [];","","        function process(cols) {","            var i, len, col;","","            for (i = 0, len = cols.length; i < len; ++i) {","                col = cols[i];","","                if (isArray(col.children)) {","                    process(col.children);","                } else {","                    displayColumns.push(col);","                }","            }","        }","","        if (columns) {","            process(columns);","        }","","        /**","        Array of the columns that correspond to those with value cells in the","        data rows. Excludes colspan header columns (configured with `children`).","","        @property displayColumns","        @type {Object[]}","        @since 3.6.0","        **/","        this.displayColumns = displayColumns;","    },","","    /**","    Publishes core events.","","    @method _initEvents","    @protected","    @since 3.5.0","    **/","    _initEvents: function () {","        this.publish({","            // Y.bind used to allow late binding for method override support","            renderTable : { defaultFn: Y.bind('_defRenderTableFn', this) },","            renderHeader: { defaultFn: Y.bind('_defRenderHeaderFn', this) },","            renderBody  : { defaultFn: Y.bind('_defRenderBodyFn', this) },","            renderFooter: { defaultFn: Y.bind('_defRenderFooterFn', this) }","        });","    },","","    /**","    Constructor logic.","","    @method intializer","    @param {Object} config Configuration object passed to the constructor","    @protected","    @since 3.6.0","    **/","    initializer: function (config) {","        this.host = config.host;","","        this._initEvents();","","        this._extractDisplayColumns();","","        this.after('columnsChange', this._extractDisplayColumns, this);","    },","","    /**","    Relays attribute changes to the child Views.","","    @method _relayAttrChange","    @param {EventHandle} e The change event","    @protected","    @since 3.6.0","    **/","    _relayAttrChange: function (e) {","        var attr = e.attrName,","            val  = e.newVal;","","        if (this.head) {","            this.head.set(attr, val);","        }","","        if (this.foot) {","            this.foot.set(attr, val);","        }","","        if (this.body) {","            if (attr === 'columns') {","                val = this.displayColumns;","            }","","            this.body.set(attr, val);","        }","    },","","    /**","    Creates the UI in the configured `container`.","","    @method render","    @return {TableView}","    @chainable","    **/","    render: function () {","        if (this.get('container')) {","            this.fire('renderTable', {","                headerView  : this.get('headerView'),","                headerConfig: this.get('headerConfig'),","","                bodyView    : this.get('bodyView'),","                bodyConfig  : this.get('bodyConfig'),","","                footerView  : this.get('footerView'),","                footerConfig: this.get('footerConfig')","            });","        }","","        return this;","    },","","    /**","    Creates, removes, or updates the table's `<caption>` element per the input","    value.  Empty values result in the caption being removed.","","    @method _uiSetCaption","    @param {HTML} htmlContent The content to populate the table caption","    @protected","    @since 3.5.0","    **/","    _uiSetCaption: function (htmlContent) {","        var table   = this.tableNode,","            caption = this.captionNode;","","        if (htmlContent) {","            if (!caption) {","                this.captionNode = caption = Y.Node.create(","                    fromTemplate(this.CAPTION_TEMPLATE, {","                        className: this.getClassName('caption')","                    }));","","                table.prepend(this.captionNode);","            }","","            caption.setHTML(htmlContent);","","        } else if (caption) {","            caption.remove(true);","","            delete this.captionNode;","        }","    },","","    /**","    Updates the table's `summary` attribute with the input value.","","    @method _uiSetSummary","    @protected","    @since 3.5.0","    **/","    _uiSetSummary: function (summary) {","        if (summary) {","            this.tableNode.setAttribute('summary', summary);","        } else {","            this.tableNode.removeAttribute('summary');","        }","    },","","    /**","    Sets the `boundingBox` and table width per the input value.","","    @method _uiSetWidth","    @param {Number|String} width The width to make the table","    @protected","    @since 3.5.0","    **/","    _uiSetWidth: function (width) {","        var table = this.tableNode;","","        // Table width needs to account for borders","        table.setStyle('width', !width ? '' :","            (this.get('container').get('offsetWidth') -","             (parseInt(table.getComputedStyle('borderLeftWidth'), 10)||0) -","             (parseInt(table.getComputedStyle('borderLeftWidth'), 10)||0)) +","             'px');","","        table.setStyle('width', width);","    },","","    /**","    Ensures that the input is a View class or at least has a `render` method.","","    @method _validateView","    @param {View|Function} val The View class","    @return {Boolean}","    @protected","    **/","    _validateView: function (val) {","        return isFunction(val) && val.prototype.render;","    }","}, {","    ATTRS: {","        /**","        Content for the `<table summary=\"ATTRIBUTE VALUE HERE\">`.  Values","        assigned to this attribute will be HTML escaped for security.","","        @attribute summary","        @type {String}","        @default '' (empty string)","        @since 3.5.0","        **/","        //summary: {},","","        /**","        HTML content of an optional `<caption>` element to appear above the","        table.  Leave this config unset or set to a falsy value to remove the","        caption.","","        @attribute caption","        @type HTML","        @default undefined (initially unset)","        @since 3.6.0","        **/","        //caption: {},","","        /**","        Columns to include in the rendered table.","","        This attribute takes an array of objects. Each object is considered a","        data column or header cell to be rendered.  How the objects are","        translated into markup is delegated to the `headerView`, `bodyView`,","        and `footerView`.","","        The raw value is passed to the `headerView` and `footerView`.  The","        `bodyView` receives the instance's `displayColumns` array, which is","        parsed from the columns array.  If there are no nested columns (columns","        configured with a `children` array), the `displayColumns` is the same","        as the raw value.","","        @attribute columns","        @type {Object[]}","        @since 3.6.0","        **/","        columns: {","            validator: isArray","        },","","        /**","        Width of the table including borders.  This value requires units, so","        `200` is invalid, but `'200px'` is valid.  Setting the empty string","        (the default) will allow the browser to set the table width.","","        @attribute width","        @type {String}","        @default ''","        @since 3.6.0","        **/","        width: {","            value: '',","            validator: YLang.isString","        },","","        /**","        An instance of this class is used to render the contents of the","        `<thead>`&mdash;the column headers for the table.","","        The instance of this View will be assigned to the instance's `head`","        property.","","        It is not strictly necessary that the class function assigned here be","        a View subclass.  It must however have a `render()` method.","","        @attribute headerView","        @type {Function|Object}","        @default Y.DataTable.HeaderView","        @since 3.6.0","        **/","        headerView: {","            value: Y.DataTable.HeaderView,","            validator: '_validateView'","        },","","        /**","        Configuration overrides used when instantiating the `headerView`","        instance.","","        @attribute headerConfig","        @type {Object}","        @since 3.6.0","        **/","        //headerConfig: {},","","        /**","        An instance of this class is used to render the contents of the","        `<tfoot>` (if appropriate).","","        The instance of this View will be assigned to the instance's `foot`","        property.","","        It is not strictly necessary that the class function assigned here be","        a View subclass.  It must however have a `render()` method.","","        @attribute footerView","        @type {Function|Object}","        @since 3.6.0","        **/","        footerView: {","            validator: '_validateView'","        },","","        /**","        Configuration overrides used when instantiating the `footerView`","        instance.","","        @attribute footerConfig","        @type {Object}","        @since 3.6.0","        **/","        //footerConfig: {},","","        /**","        An instance of this class is used to render the contents of the table's","        `<tbody>`&mdash;the data cells in the table.","","        The instance of this View will be assigned to the instance's `body`","        property.","","        It is not strictly necessary that the class function assigned here be","        a View subclass.  It must however have a `render()` method.","","        @attribute bodyView","        @type {Function|Object}","        @default Y.DataTable.BodyView","        @since 3.6.0","        **/","        bodyView: {","            value: Y.DataTable.BodyView,","            validator: '_validateView'","        }","","        /**","        Configuration overrides used when instantiating the `bodyView`","        instance.","","        @attribute bodyConfig","        @type {Object}","        @since 3.6.0","        **/","        //bodyConfig: {}","    }","});","","","","","}, '3.13.0', {\"requires\": [\"datatable-core\", \"datatable-head\", \"datatable-body\", \"view\", \"classnamemanager\"]});","","}());"]};
12 var __cov_F8zh5LRElCveLPnh4Kt67w = __coverage__['build/datatable-table/datatable-table.js'];
13 __cov_F8zh5LRElCveLPnh4Kt67w.s['1']++;YUI.add('datatable-table',function(Y,NAME){__cov_F8zh5LRElCveLPnh4Kt67w.f['1']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['2']++;var toArray=Y.Array,YLang=Y.Lang,fromTemplate=YLang.sub,isArray=YLang.isArray,isFunction=YLang.isFunction;__cov_F8zh5LRElCveLPnh4Kt67w.s['3']++;Y.namespace('DataTable').TableView=Y.Base.create('table',Y.View,[],{CAPTION_TEMPLATE:'<caption class="{className}"/>',TABLE_TEMPLATE:'<table cellspacing="0" class="{className}"/>',getCell:function(){__cov_F8zh5LRElCveLPnh4Kt67w.f['2']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['4']++;return(__cov_F8zh5LRElCveLPnh4Kt67w.b['1'][0]++,this.body)&&(__cov_F8zh5LRElCveLPnh4Kt67w.b['1'][1]++,this.body.getCell)&&(__cov_F8zh5LRElCveLPnh4Kt67w.b['1'][2]++,this.body.getCell.apply(this.body,arguments));},getClassName:function(){__cov_F8zh5LRElCveLPnh4Kt67w.f['3']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['5']++;var host=this.host,NAME=(__cov_F8zh5LRElCveLPnh4Kt67w.b['2'][0]++,host)&&(__cov_F8zh5LRElCveLPnh4Kt67w.b['2'][1]++,host.constructor.NAME)||(__cov_F8zh5LRElCveLPnh4Kt67w.b['2'][2]++,this.constructor.NAME);__cov_F8zh5LRElCveLPnh4Kt67w.s['6']++;if((__cov_F8zh5LRElCveLPnh4Kt67w.b['4'][0]++,host)&&(__cov_F8zh5LRElCveLPnh4Kt67w.b['4'][1]++,host.getClassName)){__cov_F8zh5LRElCveLPnh4Kt67w.b['3'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['7']++;return host.getClassName.apply(host,arguments);}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['3'][1]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['8']++;return Y.ClassNameManager.getClassName.apply(Y.ClassNameManager,[NAME].concat(toArray(arguments,0,true)));}},getRecord:function(){__cov_F8zh5LRElCveLPnh4Kt67w.f['4']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['9']++;return(__cov_F8zh5LRElCveLPnh4Kt67w.b['5'][0]++,this.body)&&(__cov_F8zh5LRElCveLPnh4Kt67w.b['5'][1]++,this.body.getRecord)&&(__cov_F8zh5LRElCveLPnh4Kt67w.b['5'][2]++,this.body.getRecord.apply(this.body,arguments));},getRow:function(){__cov_F8zh5LRElCveLPnh4Kt67w.f['5']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['10']++;return(__cov_F8zh5LRElCveLPnh4Kt67w.b['6'][0]++,this.body)&&(__cov_F8zh5LRElCveLPnh4Kt67w.b['6'][1]++,this.body.getRow)&&(__cov_F8zh5LRElCveLPnh4Kt67w.b['6'][2]++,this.body.getRow.apply(this.body,arguments));},_afterSummaryChange:function(e){__cov_F8zh5LRElCveLPnh4Kt67w.f['6']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['11']++;this._uiSetSummary(e.newVal);},_afterCaptionChange:function(e){__cov_F8zh5LRElCveLPnh4Kt67w.f['7']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['12']++;this._uiSetCaption(e.newVal);},_afterWidthChange:function(e){__cov_F8zh5LRElCveLPnh4Kt67w.f['8']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['13']++;this._uiSetWidth(e.newVal);},_bindUI:function(){__cov_F8zh5LRElCveLPnh4Kt67w.f['9']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['14']++;var relay;__cov_F8zh5LRElCveLPnh4Kt67w.s['15']++;if(!this._eventHandles){__cov_F8zh5LRElCveLPnh4Kt67w.b['7'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['16']++;relay=Y.bind('_relayAttrChange',this);__cov_F8zh5LRElCveLPnh4Kt67w.s['17']++;this._eventHandles=this.after({columnsChange:relay,modelListChange:relay,summaryChange:Y.bind('_afterSummaryChange',this),captionChange:Y.bind('_afterCaptionChange',this),widthChange:Y.bind('_afterWidthChange',this)});}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['7'][1]++;}},_createTable:function(){__cov_F8zh5LRElCveLPnh4Kt67w.f['10']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['18']++;return Y.Node.create(fromTemplate(this.TABLE_TEMPLATE,{className:this.getClassName('table')})).empty();},_defRenderBodyFn:function(e){__cov_F8zh5LRElCveLPnh4Kt67w.f['11']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['19']++;e.view.render();},_defRenderFooterFn:function(e){__cov_F8zh5LRElCveLPnh4Kt67w.f['12']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['20']++;e.view.render();},_defRenderHeaderFn:function(e){__cov_F8zh5LRElCveLPnh4Kt67w.f['13']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['21']++;e.view.render();},_defRenderTableFn:function(e){__cov_F8zh5LRElCveLPnh4Kt67w.f['14']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['22']++;var container=this.get('container'),attrs=this.getAttrs();__cov_F8zh5LRElCveLPnh4Kt67w.s['23']++;if(!this.tableNode){__cov_F8zh5LRElCveLPnh4Kt67w.b['8'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['24']++;this.tableNode=this._createTable();}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['8'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['25']++;attrs.host=(__cov_F8zh5LRElCveLPnh4Kt67w.b['9'][0]++,this.get('host'))||(__cov_F8zh5LRElCveLPnh4Kt67w.b['9'][1]++,this);__cov_F8zh5LRElCveLPnh4Kt67w.s['26']++;attrs.table=this;__cov_F8zh5LRElCveLPnh4Kt67w.s['27']++;attrs.container=this.tableNode;__cov_F8zh5LRElCveLPnh4Kt67w.s['28']++;this._uiSetCaption(this.get('caption'));__cov_F8zh5LRElCveLPnh4Kt67w.s['29']++;this._uiSetSummary(this.get('summary'));__cov_F8zh5LRElCveLPnh4Kt67w.s['30']++;this._uiSetWidth(this.get('width'));__cov_F8zh5LRElCveLPnh4Kt67w.s['31']++;if((__cov_F8zh5LRElCveLPnh4Kt67w.b['11'][0]++,this.head)||(__cov_F8zh5LRElCveLPnh4Kt67w.b['11'][1]++,e.headerView)){__cov_F8zh5LRElCveLPnh4Kt67w.b['10'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['32']++;if(!this.head){__cov_F8zh5LRElCveLPnh4Kt67w.b['12'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['33']++;this.head=new e.headerView(Y.merge(attrs,e.headerConfig));}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['12'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['34']++;this.fire('renderHeader',{view:this.head});}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['10'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['35']++;if((__cov_F8zh5LRElCveLPnh4Kt67w.b['14'][0]++,this.foot)||(__cov_F8zh5LRElCveLPnh4Kt67w.b['14'][1]++,e.footerView)){__cov_F8zh5LRElCveLPnh4Kt67w.b['13'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['36']++;if(!this.foot){__cov_F8zh5LRElCveLPnh4Kt67w.b['15'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['37']++;this.foot=new e.footerView(Y.merge(attrs,e.footerConfig));}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['15'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['38']++;this.fire('renderFooter',{view:this.foot});}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['13'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['39']++;attrs.columns=this.displayColumns;__cov_F8zh5LRElCveLPnh4Kt67w.s['40']++;if((__cov_F8zh5LRElCveLPnh4Kt67w.b['17'][0]++,this.body)||(__cov_F8zh5LRElCveLPnh4Kt67w.b['17'][1]++,e.bodyView)){__cov_F8zh5LRElCveLPnh4Kt67w.b['16'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['41']++;if(!this.body){__cov_F8zh5LRElCveLPnh4Kt67w.b['18'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['42']++;this.body=new e.bodyView(Y.merge(attrs,e.bodyConfig));}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['18'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['43']++;this.fire('renderBody',{view:this.body});}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['16'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['44']++;if(!container.contains(this.tableNode)){__cov_F8zh5LRElCveLPnh4Kt67w.b['19'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['45']++;container.append(this.tableNode);}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['19'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['46']++;this._bindUI();},destructor:function(){__cov_F8zh5LRElCveLPnh4Kt67w.f['15']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['47']++;if((__cov_F8zh5LRElCveLPnh4Kt67w.b['21'][0]++,this.head)&&(__cov_F8zh5LRElCveLPnh4Kt67w.b['21'][1]++,this.head.destroy)){__cov_F8zh5LRElCveLPnh4Kt67w.b['20'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['48']++;this.head.destroy();}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['20'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['49']++;delete this.head;__cov_F8zh5LRElCveLPnh4Kt67w.s['50']++;if((__cov_F8zh5LRElCveLPnh4Kt67w.b['23'][0]++,this.foot)&&(__cov_F8zh5LRElCveLPnh4Kt67w.b['23'][1]++,this.foot.destroy)){__cov_F8zh5LRElCveLPnh4Kt67w.b['22'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['51']++;this.foot.destroy();}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['22'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['52']++;delete this.foot;__cov_F8zh5LRElCveLPnh4Kt67w.s['53']++;if((__cov_F8zh5LRElCveLPnh4Kt67w.b['25'][0]++,this.body)&&(__cov_F8zh5LRElCveLPnh4Kt67w.b['25'][1]++,this.body.destroy)){__cov_F8zh5LRElCveLPnh4Kt67w.b['24'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['54']++;this.body.destroy();}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['24'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['55']++;delete this.body;__cov_F8zh5LRElCveLPnh4Kt67w.s['56']++;if(this._eventHandles){__cov_F8zh5LRElCveLPnh4Kt67w.b['26'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['57']++;this._eventHandles.detach();__cov_F8zh5LRElCveLPnh4Kt67w.s['58']++;delete this._eventHandles;}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['26'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['59']++;if(this.tableNode){__cov_F8zh5LRElCveLPnh4Kt67w.b['27'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['60']++;this.tableNode.remove().destroy(true);}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['27'][1]++;}},_extractDisplayColumns:function(){__cov_F8zh5LRElCveLPnh4Kt67w.f['16']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['61']++;var columns=this.get('columns'),displayColumns=[];__cov_F8zh5LRElCveLPnh4Kt67w.s['62']++;function process(cols){__cov_F8zh5LRElCveLPnh4Kt67w.f['17']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['63']++;var i,len,col;__cov_F8zh5LRElCveLPnh4Kt67w.s['64']++;for(i=0,len=cols.length;i<len;++i){__cov_F8zh5LRElCveLPnh4Kt67w.s['65']++;col=cols[i];__cov_F8zh5LRElCveLPnh4Kt67w.s['66']++;if(isArray(col.children)){__cov_F8zh5LRElCveLPnh4Kt67w.b['28'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['67']++;process(col.children);}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['28'][1]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['68']++;displayColumns.push(col);}}}__cov_F8zh5LRElCveLPnh4Kt67w.s['69']++;if(columns){__cov_F8zh5LRElCveLPnh4Kt67w.b['29'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['70']++;process(columns);}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['29'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['71']++;this.displayColumns=displayColumns;},_initEvents:function(){__cov_F8zh5LRElCveLPnh4Kt67w.f['18']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['72']++;this.publish({renderTable:{defaultFn:Y.bind('_defRenderTableFn',this)},renderHeader:{defaultFn:Y.bind('_defRenderHeaderFn',this)},renderBody:{defaultFn:Y.bind('_defRenderBodyFn',this)},renderFooter:{defaultFn:Y.bind('_defRenderFooterFn',this)}});},initializer:function(config){__cov_F8zh5LRElCveLPnh4Kt67w.f['19']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['73']++;this.host=config.host;__cov_F8zh5LRElCveLPnh4Kt67w.s['74']++;this._initEvents();__cov_F8zh5LRElCveLPnh4Kt67w.s['75']++;this._extractDisplayColumns();__cov_F8zh5LRElCveLPnh4Kt67w.s['76']++;this.after('columnsChange',this._extractDisplayColumns,this);},_relayAttrChange:function(e){__cov_F8zh5LRElCveLPnh4Kt67w.f['20']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['77']++;var attr=e.attrName,val=e.newVal;__cov_F8zh5LRElCveLPnh4Kt67w.s['78']++;if(this.head){__cov_F8zh5LRElCveLPnh4Kt67w.b['30'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['79']++;this.head.set(attr,val);}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['30'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['80']++;if(this.foot){__cov_F8zh5LRElCveLPnh4Kt67w.b['31'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['81']++;this.foot.set(attr,val);}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['31'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['82']++;if(this.body){__cov_F8zh5LRElCveLPnh4Kt67w.b['32'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['83']++;if(attr==='columns'){__cov_F8zh5LRElCveLPnh4Kt67w.b['33'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['84']++;val=this.displayColumns;}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['33'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['85']++;this.body.set(attr,val);}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['32'][1]++;}},render:function(){__cov_F8zh5LRElCveLPnh4Kt67w.f['21']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['86']++;if(this.get('container')){__cov_F8zh5LRElCveLPnh4Kt67w.b['34'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['87']++;this.fire('renderTable',{headerView:this.get('headerView'),headerConfig:this.get('headerConfig'),bodyView:this.get('bodyView'),bodyConfig:this.get('bodyConfig'),footerView:this.get('footerView'),footerConfig:this.get('footerConfig')});}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['34'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['88']++;return this;},_uiSetCaption:function(htmlContent){__cov_F8zh5LRElCveLPnh4Kt67w.f['22']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['89']++;var table=this.tableNode,caption=this.captionNode;__cov_F8zh5LRElCveLPnh4Kt67w.s['90']++;if(htmlContent){__cov_F8zh5LRElCveLPnh4Kt67w.b['35'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['91']++;if(!caption){__cov_F8zh5LRElCveLPnh4Kt67w.b['36'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['92']++;this.captionNode=caption=Y.Node.create(fromTemplate(this.CAPTION_TEMPLATE,{className:this.getClassName('caption')}));__cov_F8zh5LRElCveLPnh4Kt67w.s['93']++;table.prepend(this.captionNode);}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['36'][1]++;}__cov_F8zh5LRElCveLPnh4Kt67w.s['94']++;caption.setHTML(htmlContent);}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['35'][1]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['95']++;if(caption){__cov_F8zh5LRElCveLPnh4Kt67w.b['37'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['96']++;caption.remove(true);__cov_F8zh5LRElCveLPnh4Kt67w.s['97']++;delete this.captionNode;}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['37'][1]++;}}},_uiSetSummary:function(summary){__cov_F8zh5LRElCveLPnh4Kt67w.f['23']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['98']++;if(summary){__cov_F8zh5LRElCveLPnh4Kt67w.b['38'][0]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['99']++;this.tableNode.setAttribute('summary',summary);}else{__cov_F8zh5LRElCveLPnh4Kt67w.b['38'][1]++;__cov_F8zh5LRElCveLPnh4Kt67w.s['100']++;this.tableNode.removeAttribute('summary');}},_uiSetWidth:function(width){__cov_F8zh5LRElCveLPnh4Kt67w.f['24']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['101']++;var table=this.tableNode;__cov_F8zh5LRElCveLPnh4Kt67w.s['102']++;table.setStyle('width',!width?(__cov_F8zh5LRElCveLPnh4Kt67w.b['39'][0]++,''):(__cov_F8zh5LRElCveLPnh4Kt67w.b['39'][1]++,this.get('container').get('offsetWidth')-((__cov_F8zh5LRElCveLPnh4Kt67w.b['40'][0]++,parseInt(table.getComputedStyle('borderLeftWidth'),10))||(__cov_F8zh5LRElCveLPnh4Kt67w.b['40'][1]++,0))-((__cov_F8zh5LRElCveLPnh4Kt67w.b['41'][0]++,parseInt(table.getComputedStyle('borderLeftWidth'),10))||(__cov_F8zh5LRElCveLPnh4Kt67w.b['41'][1]++,0))+'px'));__cov_F8zh5LRElCveLPnh4Kt67w.s['103']++;table.setStyle('width',width);},_validateView:function(val){__cov_F8zh5LRElCveLPnh4Kt67w.f['25']++;__cov_F8zh5LRElCveLPnh4Kt67w.s['104']++;return(__cov_F8zh5LRElCveLPnh4Kt67w.b['42'][0]++,isFunction(val))&&(__cov_F8zh5LRElCveLPnh4Kt67w.b['42'][1]++,val.prototype.render);}},{ATTRS:{columns:{validator:isArray},width:{value:'',validator:YLang.isString},headerView:{value:Y.DataTable.HeaderView,validator:'_validateView'},footerView:{validator:'_validateView'},bodyView:{value:Y.DataTable.BodyView,validator:'_validateView'}}});},'3.13.0',{'requires':['datatable-core','datatable-head','datatable-body','view','classnamemanager']});