diff -r d334a616c023 -r e16a97fb364a src/cm/media/js/lib/yui/yui3-3.15.0/build/node-base/node-base-coverage.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui3-3.15.0/build/node-base/node-base-coverage.js Mon Mar 10 15:19:48 2014 +0100 @@ -0,0 +1,6 @@ +if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } +if (!__coverage__['build/node-base/node-base.js']) { + __coverage__['build/node-base/node-base.js'] = {"path":"build/node-base/node-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,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0,"154":0,"155":0,"156":0,"157":0,"158":0,"159":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,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,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[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,"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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":40}}},"2":{"name":"(anonymous_2)","line":117,"loc":{"start":{"line":117,"column":16},"end":{"line":117,"column":36}}},"3":{"name":"(anonymous_3)","line":162,"loc":{"start":{"line":162,"column":12},"end":{"line":162,"column":37}}},"4":{"name":"(anonymous_4)","line":167,"loc":{"start":{"line":167,"column":13},"end":{"line":167,"column":38}}},"5":{"name":"(anonymous_5)","line":193,"loc":{"start":{"line":193,"column":13},"end":{"line":193,"column":31}}},"6":{"name":"(anonymous_6)","line":205,"loc":{"start":{"line":205,"column":12},"end":{"line":205,"column":30}}},"7":{"name":"(anonymous_7)","line":216,"loc":{"start":{"line":216,"column":17},"end":{"line":216,"column":32}}},"8":{"name":"(anonymous_8)","line":228,"loc":{"start":{"line":228,"column":18},"end":{"line":228,"column":45}}},"9":{"name":"(anonymous_9)","line":238,"loc":{"start":{"line":238,"column":14},"end":{"line":238,"column":29}}},"10":{"name":"(anonymous_10)","line":245,"loc":{"start":{"line":245,"column":16},"end":{"line":245,"column":34}}},"11":{"name":"(anonymous_11)","line":252,"loc":{"start":{"line":252,"column":16},"end":{"line":252,"column":27}}},"12":{"name":"(anonymous_12)","line":370,"loc":{"start":{"line":370,"column":16},"end":{"line":370,"column":27}}},"13":{"name":"(anonymous_13)","line":374,"loc":{"start":{"line":374,"column":16},"end":{"line":374,"column":34}}},"14":{"name":"(anonymous_14)","line":387,"loc":{"start":{"line":387,"column":16},"end":{"line":387,"column":27}}},"15":{"name":"(anonymous_15)","line":391,"loc":{"start":{"line":391,"column":16},"end":{"line":391,"column":30}}},"16":{"name":"(anonymous_16)","line":398,"loc":{"start":{"line":398,"column":16},"end":{"line":398,"column":27}}},"17":{"name":"(anonymous_17)","line":410,"loc":{"start":{"line":410,"column":16},"end":{"line":410,"column":27}}},"18":{"name":"(anonymous_18)","line":430,"loc":{"start":{"line":430,"column":16},"end":{"line":430,"column":27}}},"19":{"name":"(anonymous_19)","line":434,"loc":{"start":{"line":434,"column":16},"end":{"line":434,"column":30}}},"20":{"name":"(anonymous_20)","line":545,"loc":{"start":{"line":545,"column":11},"end":{"line":545,"column":35}}},"21":{"name":"(anonymous_21)","line":553,"loc":{"start":{"line":553,"column":18},"end":{"line":553,"column":46}}},"22":{"name":"(anonymous_22)","line":612,"loc":{"start":{"line":612,"column":8},"end":{"line":612,"column":36}}},"23":{"name":"(anonymous_23)","line":627,"loc":{"start":{"line":627,"column":10},"end":{"line":627,"column":38}}},"24":{"name":"(anonymous_24)","line":644,"loc":{"start":{"line":644,"column":11},"end":{"line":644,"column":39}}},"25":{"name":"(anonymous_25)","line":662,"loc":{"start":{"line":662,"column":15},"end":{"line":662,"column":43}}},"26":{"name":"(anonymous_26)","line":726,"loc":{"start":{"line":726,"column":16},"end":{"line":726,"column":28}}},"27":{"name":"(anonymous_27)","line":731,"loc":{"start":{"line":731,"column":16},"end":{"line":731,"column":27}}},"28":{"name":"(anonymous_28)","line":737,"loc":{"start":{"line":737,"column":16},"end":{"line":737,"column":28}}},"29":{"name":"(anonymous_29)","line":742,"loc":{"start":{"line":742,"column":16},"end":{"line":742,"column":27}}},"30":{"name":"(anonymous_30)","line":749,"loc":{"start":{"line":749,"column":12},"end":{"line":749,"column":27}}},"31":{"name":"(anonymous_31)","line":765,"loc":{"start":{"line":765,"column":36},"end":{"line":765,"column":51}}},"32":{"name":"(anonymous_32)","line":778,"loc":{"start":{"line":778,"column":25},"end":{"line":778,"column":37}}},"33":{"name":"(anonymous_33)","line":790,"loc":{"start":{"line":790,"column":12},"end":{"line":790,"column":26}}},"34":{"name":"(anonymous_34)","line":807,"loc":{"start":{"line":807,"column":12},"end":{"line":807,"column":23}}},"35":{"name":"(anonymous_35)","line":817,"loc":{"start":{"line":817,"column":20},"end":{"line":817,"column":31}}},"36":{"name":"(anonymous_36)","line":831,"loc":{"start":{"line":831,"column":15},"end":{"line":831,"column":26}}},"37":{"name":"(anonymous_37)","line":849,"loc":{"start":{"line":849,"column":13},"end":{"line":849,"column":28}}},"38":{"name":"(anonymous_38)","line":862,"loc":{"start":{"line":862,"column":32},"end":{"line":862,"column":47}}},"39":{"name":"(anonymous_39)","line":873,"loc":{"start":{"line":873,"column":24},"end":{"line":873,"column":38}}},"40":{"name":"(anonymous_40)","line":897,"loc":{"start":{"line":897,"column":23},"end":{"line":897,"column":38}}},"41":{"name":"(anonymous_41)","line":917,"loc":{"start":{"line":917,"column":13},"end":{"line":917,"column":33}}},"42":{"name":"(anonymous_42)","line":936,"loc":{"start":{"line":936,"column":15},"end":{"line":936,"column":30}}},"43":{"name":"(anonymous_43)","line":961,"loc":{"start":{"line":961,"column":13},"end":{"line":961,"column":28}}},"44":{"name":"(anonymous_44)","line":976,"loc":{"start":{"line":976,"column":13},"end":{"line":976,"column":33}}},"45":{"name":"(anonymous_45)","line":989,"loc":{"start":{"line":989,"column":15},"end":{"line":989,"column":30}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":996,"column":84}},"2":{"start":{"line":8,"column":0},"end":{"line":52,"column":2}},"3":{"start":{"line":54,"column":0},"end":{"line":54,"column":36}},"4":{"start":{"line":97,"column":0},"end":{"line":97,"column":51}},"5":{"start":{"line":103,"column":0},"end":{"line":104,"column":18}},"6":{"start":{"line":117,"column":0},"end":{"line":122,"column":2}},"7":{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},"8":{"start":{"line":119,"column":8},"end":{"line":119,"column":24}},"9":{"start":{"line":121,"column":4},"end":{"line":121,"column":42}},"10":{"start":{"line":124,"column":0},"end":{"line":264,"column":3}},"11":{"start":{"line":163,"column":8},"end":{"line":163,"column":37}},"12":{"start":{"line":164,"column":8},"end":{"line":164,"column":20}},"13":{"start":{"line":168,"column":8},"end":{"line":169,"column":23}},"14":{"start":{"line":171,"column":8},"end":{"line":175,"column":9}},"15":{"start":{"line":172,"column":12},"end":{"line":172,"column":49}},"16":{"start":{"line":173,"column":15},"end":{"line":175,"column":9}},"17":{"start":{"line":174,"column":12},"end":{"line":174,"column":32}},"18":{"start":{"line":177,"column":8},"end":{"line":179,"column":9}},"19":{"start":{"line":178,"column":12},"end":{"line":178,"column":65}},"20":{"start":{"line":180,"column":8},"end":{"line":180,"column":50}},"21":{"start":{"line":182,"column":8},"end":{"line":182,"column":19}},"22":{"start":{"line":194,"column":8},"end":{"line":194,"column":39}},"23":{"start":{"line":206,"column":8},"end":{"line":206,"column":42}},"24":{"start":{"line":217,"column":8},"end":{"line":217,"column":51}},"25":{"start":{"line":229,"column":8},"end":{"line":229,"column":63}},"26":{"start":{"line":239,"column":8},"end":{"line":239,"column":33}},"27":{"start":{"line":240,"column":8},"end":{"line":240,"column":20}},"28":{"start":{"line":246,"column":8},"end":{"line":246,"column":41}},"29":{"start":{"line":247,"column":8},"end":{"line":247,"column":20}},"30":{"start":{"line":253,"column":8},"end":{"line":253,"column":24}},"31":{"start":{"line":255,"column":8},"end":{"line":260,"column":9}},"32":{"start":{"line":259,"column":12},"end":{"line":259,"column":70}},"33":{"start":{"line":262,"column":8},"end":{"line":262,"column":37}},"34":{"start":{"line":275,"column":0},"end":{"line":275,"column":55}},"35":{"start":{"line":282,"column":0},"end":{"line":282,"column":55}},"36":{"start":{"line":284,"column":0},"end":{"line":347,"column":3}},"37":{"start":{"line":353,"column":0},"end":{"line":354,"column":18}},"38":{"start":{"line":362,"column":0},"end":{"line":439,"column":2}},"39":{"start":{"line":371,"column":12},"end":{"line":371,"column":45}},"40":{"start":{"line":375,"column":12},"end":{"line":375,"column":47}},"41":{"start":{"line":376,"column":12},"end":{"line":376,"column":27}},"42":{"start":{"line":388,"column":12},"end":{"line":388,"column":57}},"43":{"start":{"line":392,"column":12},"end":{"line":392,"column":55}},"44":{"start":{"line":393,"column":12},"end":{"line":393,"column":23}},"45":{"start":{"line":399,"column":12},"end":{"line":399,"column":61}},"46":{"start":{"line":411,"column":12},"end":{"line":413,"column":35}},"47":{"start":{"line":415,"column":12},"end":{"line":424,"column":13}},"48":{"start":{"line":416,"column":16},"end":{"line":416,"column":45}},"49":{"start":{"line":417,"column":16},"end":{"line":417,"column":30}},"50":{"start":{"line":419,"column":16},"end":{"line":423,"column":17}},"51":{"start":{"line":420,"column":20},"end":{"line":422,"column":21}},"52":{"start":{"line":421,"column":24},"end":{"line":421,"column":66}},"53":{"start":{"line":425,"column":12},"end":{"line":425,"column":35}},"54":{"start":{"line":431,"column":12},"end":{"line":431,"column":46}},"55":{"start":{"line":435,"column":12},"end":{"line":435,"column":44}},"56":{"start":{"line":436,"column":12},"end":{"line":436,"column":23}},"57":{"start":{"line":441,"column":0},"end":{"line":464,"column":3}},"58":{"start":{"line":470,"column":0},"end":{"line":470,"column":20}},"59":{"start":{"line":471,"column":0},"end":{"line":471,"column":28}},"60":{"start":{"line":479,"column":0},"end":{"line":526,"column":2}},"61":{"start":{"line":531,"column":0},"end":{"line":531,"column":44}},"62":{"start":{"line":533,"column":0},"end":{"line":533,"column":33}},"63":{"start":{"line":535,"column":0},"end":{"line":550,"column":3}},"64":{"start":{"line":546,"column":8},"end":{"line":546,"column":56}},"65":{"start":{"line":547,"column":8},"end":{"line":547,"column":20}},"66":{"start":{"line":552,"column":0},"end":{"line":665,"column":3}},"67":{"start":{"line":555,"column":8},"end":{"line":555,"column":47}},"68":{"start":{"line":557,"column":8},"end":{"line":561,"column":9}},"69":{"start":{"line":558,"column":12},"end":{"line":558,"column":34}},"70":{"start":{"line":560,"column":12},"end":{"line":560,"column":43}},"71":{"start":{"line":563,"column":8},"end":{"line":563,"column":34}},"72":{"start":{"line":565,"column":8},"end":{"line":565,"column":20}},"73":{"start":{"line":613,"column":8},"end":{"line":613,"column":71}},"74":{"start":{"line":628,"column":8},"end":{"line":628,"column":73}},"75":{"start":{"line":645,"column":8},"end":{"line":645,"column":74}},"76":{"start":{"line":663,"column":8},"end":{"line":663,"column":78}},"77":{"start":{"line":667,"column":0},"end":{"line":682,"column":3}},"78":{"start":{"line":724,"column":0},"end":{"line":746,"column":3}},"79":{"start":{"line":727,"column":12},"end":{"line":727,"column":43}},"80":{"start":{"line":728,"column":12},"end":{"line":728,"column":21}},"81":{"start":{"line":732,"column":12},"end":{"line":732,"column":43}},"82":{"start":{"line":738,"column":12},"end":{"line":738,"column":42}},"83":{"start":{"line":739,"column":12},"end":{"line":739,"column":21}},"84":{"start":{"line":743,"column":12},"end":{"line":743,"column":42}},"85":{"start":{"line":748,"column":0},"end":{"line":762,"column":3}},"86":{"start":{"line":750,"column":8},"end":{"line":750,"column":17}},"87":{"start":{"line":751,"column":8},"end":{"line":755,"column":9}},"88":{"start":{"line":752,"column":12},"end":{"line":752,"column":28}},"89":{"start":{"line":753,"column":12},"end":{"line":753,"column":40}},"90":{"start":{"line":754,"column":12},"end":{"line":754,"column":41}},"91":{"start":{"line":757,"column":8},"end":{"line":760,"column":11}},"92":{"start":{"line":764,"column":0},"end":{"line":774,"column":1}},"93":{"start":{"line":765,"column":4},"end":{"line":773,"column":6}},"94":{"start":{"line":766,"column":8},"end":{"line":770,"column":9}},"95":{"start":{"line":767,"column":12},"end":{"line":769,"column":13}},"96":{"start":{"line":768,"column":16},"end":{"line":768,"column":28}},"97":{"start":{"line":771,"column":8},"end":{"line":772,"column":55}},"98":{"start":{"line":778,"column":0},"end":{"line":785,"column":2}},"99":{"start":{"line":779,"column":4},"end":{"line":782,"column":5}},"100":{"start":{"line":780,"column":8},"end":{"line":780,"column":27}},"101":{"start":{"line":784,"column":4},"end":{"line":784,"column":16}},"102":{"start":{"line":789,"column":0},"end":{"line":812,"column":2}},"103":{"start":{"line":791,"column":8},"end":{"line":803,"column":9}},"104":{"start":{"line":792,"column":12},"end":{"line":797,"column":13}},"105":{"start":{"line":793,"column":16},"end":{"line":793,"column":43}},"106":{"start":{"line":795,"column":16},"end":{"line":795,"column":50}},"107":{"start":{"line":796,"column":16},"end":{"line":796,"column":43}},"108":{"start":{"line":799,"column":12},"end":{"line":802,"column":13}},"109":{"start":{"line":800,"column":16},"end":{"line":800,"column":38}},"110":{"start":{"line":804,"column":8},"end":{"line":804,"column":19}},"111":{"start":{"line":808,"column":8},"end":{"line":808,"column":50}},"112":{"start":{"line":814,"column":0},"end":{"line":821,"column":1}},"113":{"start":{"line":816,"column":4},"end":{"line":820,"column":6}},"114":{"start":{"line":818,"column":16},"end":{"line":818,"column":67}},"115":{"start":{"line":830,"column":0},"end":{"line":947,"column":3}},"116":{"start":{"line":832,"column":8},"end":{"line":834,"column":9}},"117":{"start":{"line":833,"column":12},"end":{"line":833,"column":28}},"118":{"start":{"line":850,"column":8},"end":{"line":850,"column":25}},"119":{"start":{"line":851,"column":8},"end":{"line":852,"column":23}},"120":{"start":{"line":854,"column":8},"end":{"line":867,"column":9}},"121":{"start":{"line":855,"column":12},"end":{"line":859,"column":13}},"122":{"start":{"line":856,"column":16},"end":{"line":856,"column":33}},"123":{"start":{"line":858,"column":16},"end":{"line":858,"column":51}},"124":{"start":{"line":860,"column":15},"end":{"line":867,"column":9}},"125":{"start":{"line":861,"column":12},"end":{"line":861,"column":21}},"126":{"start":{"line":862,"column":12},"end":{"line":864,"column":15}},"127":{"start":{"line":863,"column":16},"end":{"line":863,"column":27}},"128":{"start":{"line":866,"column":12},"end":{"line":866,"column":47}},"129":{"start":{"line":869,"column":8},"end":{"line":869,"column":19}},"130":{"start":{"line":874,"column":8},"end":{"line":874,"column":24}},"131":{"start":{"line":875,"column":8},"end":{"line":880,"column":17}},"132":{"start":{"line":882,"column":8},"end":{"line":892,"column":9}},"133":{"start":{"line":883,"column":12},"end":{"line":883,"column":33}},"134":{"start":{"line":884,"column":12},"end":{"line":889,"column":13}},"135":{"start":{"line":885,"column":16},"end":{"line":885,"column":49}},"136":{"start":{"line":886,"column":16},"end":{"line":888,"column":17}},"137":{"start":{"line":887,"column":20},"end":{"line":887,"column":61}},"138":{"start":{"line":891,"column":12},"end":{"line":891,"column":19}},"139":{"start":{"line":894,"column":8},"end":{"line":894,"column":19}},"140":{"start":{"line":898,"column":8},"end":{"line":898,"column":39}},"141":{"start":{"line":900,"column":8},"end":{"line":902,"column":61}},"142":{"start":{"line":904,"column":8},"end":{"line":904,"column":20}},"143":{"start":{"line":918,"column":8},"end":{"line":918,"column":25}},"144":{"start":{"line":919,"column":8},"end":{"line":923,"column":9}},"145":{"start":{"line":920,"column":12},"end":{"line":920,"column":35}},"146":{"start":{"line":922,"column":12},"end":{"line":922,"column":30}},"147":{"start":{"line":925,"column":7},"end":{"line":925,"column":19}},"148":{"start":{"line":937,"column":8},"end":{"line":943,"column":9}},"149":{"start":{"line":938,"column":12},"end":{"line":942,"column":13}},"150":{"start":{"line":939,"column":16},"end":{"line":939,"column":40}},"151":{"start":{"line":941,"column":16},"end":{"line":941,"column":34}},"152":{"start":{"line":945,"column":8},"end":{"line":945,"column":20}},"153":{"start":{"line":949,"column":0},"end":{"line":993,"column":3}},"154":{"start":{"line":962,"column":8},"end":{"line":962,"column":52}},"155":{"start":{"line":963,"column":8},"end":{"line":963,"column":51}},"156":{"start":{"line":977,"column":8},"end":{"line":977,"column":65}},"157":{"start":{"line":978,"column":8},"end":{"line":978,"column":45}},"158":{"start":{"line":990,"column":8},"end":{"line":990,"column":52}},"159":{"start":{"line":991,"column":8},"end":{"line":991,"column":49}}},"branchMap":{"1":{"line":118,"type":"if","locations":[{"start":{"line":118,"column":4},"end":{"line":118,"column":4}},{"start":{"line":118,"column":4},"end":{"line":118,"column":4}}]},"2":{"line":118,"type":"binary-expr","locations":[{"start":{"line":118,"column":8},"end":{"line":118,"column":11}},{"start":{"line":118,"column":15},"end":{"line":118,"column":24}}]},"3":{"line":171,"type":"if","locations":[{"start":{"line":171,"column":8},"end":{"line":171,"column":8}},{"start":{"line":171,"column":8},"end":{"line":171,"column":8}}]},"4":{"line":173,"type":"if","locations":[{"start":{"line":173,"column":15},"end":{"line":173,"column":15}},{"start":{"line":173,"column":15},"end":{"line":173,"column":15}}]},"5":{"line":173,"type":"binary-expr","locations":[{"start":{"line":173,"column":19},"end":{"line":173,"column":24}},{"start":{"line":173,"column":28},"end":{"line":173,"column":39}}]},"6":{"line":177,"type":"if","locations":[{"start":{"line":177,"column":8},"end":{"line":177,"column":8}},{"start":{"line":177,"column":8},"end":{"line":177,"column":8}}]},"7":{"line":177,"type":"binary-expr","locations":[{"start":{"line":177,"column":12},"end":{"line":177,"column":19}},{"start":{"line":177,"column":23},"end":{"line":177,"column":49}}]},"8":{"line":178,"type":"binary-expr","locations":[{"start":{"line":178,"column":22},"end":{"line":178,"column":35}},{"start":{"line":178,"column":39},"end":{"line":178,"column":53}},{"start":{"line":178,"column":57},"end":{"line":178,"column":64}}]},"9":{"line":255,"type":"if","locations":[{"start":{"line":255,"column":8},"end":{"line":255,"column":8}},{"start":{"line":255,"column":8},"end":{"line":255,"column":8}}]},"10":{"line":415,"type":"if","locations":[{"start":{"line":415,"column":12},"end":{"line":415,"column":12}},{"start":{"line":415,"column":12},"end":{"line":415,"column":12}}]},"11":{"line":420,"type":"if","locations":[{"start":{"line":420,"column":20},"end":{"line":420,"column":20}},{"start":{"line":420,"column":20},"end":{"line":420,"column":20}}]},"12":{"line":557,"type":"if","locations":[{"start":{"line":557,"column":8},"end":{"line":557,"column":8}},{"start":{"line":557,"column":8},"end":{"line":557,"column":8}}]},"13":{"line":563,"type":"binary-expr","locations":[{"start":{"line":563,"column":18},"end":{"line":563,"column":25}},{"start":{"line":563,"column":29},"end":{"line":563,"column":33}}]},"14":{"line":751,"type":"if","locations":[{"start":{"line":751,"column":8},"end":{"line":751,"column":8}},{"start":{"line":751,"column":8},"end":{"line":751,"column":8}}]},"15":{"line":764,"type":"if","locations":[{"start":{"line":764,"column":0},"end":{"line":764,"column":0}},{"start":{"line":764,"column":0},"end":{"line":764,"column":0}}]},"16":{"line":766,"type":"if","locations":[{"start":{"line":766,"column":8},"end":{"line":766,"column":8}},{"start":{"line":766,"column":8},"end":{"line":766,"column":8}}]},"17":{"line":767,"type":"if","locations":[{"start":{"line":767,"column":12},"end":{"line":767,"column":12}},{"start":{"line":767,"column":12},"end":{"line":767,"column":12}}]},"18":{"line":771,"type":"binary-expr","locations":[{"start":{"line":771,"column":18},"end":{"line":771,"column":45}},{"start":{"line":772,"column":16},"end":{"line":772,"column":53}}]},"19":{"line":791,"type":"if","locations":[{"start":{"line":791,"column":8},"end":{"line":791,"column":8}},{"start":{"line":791,"column":8},"end":{"line":791,"column":8}}]},"20":{"line":808,"type":"binary-expr","locations":[{"start":{"line":808,"column":15},"end":{"line":808,"column":30}},{"start":{"line":808,"column":34},"end":{"line":808,"column":49}}]},"21":{"line":814,"type":"if","locations":[{"start":{"line":814,"column":0},"end":{"line":814,"column":0}},{"start":{"line":814,"column":0},"end":{"line":814,"column":0}}]},"22":{"line":832,"type":"if","locations":[{"start":{"line":832,"column":8},"end":{"line":832,"column":8}},{"start":{"line":832,"column":8},"end":{"line":832,"column":8}}]},"23":{"line":854,"type":"if","locations":[{"start":{"line":854,"column":8},"end":{"line":854,"column":8}},{"start":{"line":854,"column":8},"end":{"line":854,"column":8}}]},"24":{"line":855,"type":"if","locations":[{"start":{"line":855,"column":12},"end":{"line":855,"column":12}},{"start":{"line":855,"column":12},"end":{"line":855,"column":12}}]},"25":{"line":860,"type":"if","locations":[{"start":{"line":860,"column":15},"end":{"line":860,"column":15}},{"start":{"line":860,"column":15},"end":{"line":860,"column":15}}]},"26":{"line":860,"type":"binary-expr","locations":[{"start":{"line":860,"column":19},"end":{"line":860,"column":42}},{"start":{"line":860,"column":46},"end":{"line":860,"column":59}}]},"27":{"line":874,"type":"binary-expr","locations":[{"start":{"line":874,"column":14},"end":{"line":874,"column":17}},{"start":{"line":874,"column":21},"end":{"line":874,"column":23}}]},"28":{"line":884,"type":"if","locations":[{"start":{"line":884,"column":12},"end":{"line":884,"column":12}},{"start":{"line":884,"column":12},"end":{"line":884,"column":12}}]},"29":{"line":886,"type":"if","locations":[{"start":{"line":886,"column":16},"end":{"line":886,"column":16}},{"start":{"line":886,"column":16},"end":{"line":886,"column":16}}]},"30":{"line":902,"type":"binary-expr","locations":[{"start":{"line":902,"column":19},"end":{"line":902,"column":24}},{"start":{"line":902,"column":28},"end":{"line":902,"column":39}},{"start":{"line":902,"column":43},"end":{"line":902,"column":60}}]},"31":{"line":919,"type":"if","locations":[{"start":{"line":919,"column":8},"end":{"line":919,"column":8}},{"start":{"line":919,"column":8},"end":{"line":919,"column":8}}]},"32":{"line":937,"type":"if","locations":[{"start":{"line":937,"column":8},"end":{"line":937,"column":8}},{"start":{"line":937,"column":8},"end":{"line":937,"column":8}}]},"33":{"line":938,"type":"if","locations":[{"start":{"line":938,"column":12},"end":{"line":938,"column":12}},{"start":{"line":938,"column":12},"end":{"line":938,"column":12}}]},"34":{"line":962,"type":"cond-expr","locations":[{"start":{"line":962,"column":40},"end":{"line":962,"column":46}},{"start":{"line":962,"column":49},"end":{"line":962,"column":51}}]},"35":{"line":977,"type":"cond-expr","locations":[{"start":{"line":977,"column":44},"end":{"line":977,"column":55}},{"start":{"line":977,"column":58},"end":{"line":977,"column":64}}]},"36":{"line":990,"type":"cond-expr","locations":[{"start":{"line":990,"column":40},"end":{"line":990,"column":46}},{"start":{"line":990,"column":49},"end":{"line":990,"column":51}}]}},"code":["(function () { YUI.add('node-base', function (Y, NAME) {","","/**"," * @module node"," * @submodule node-base"," */","","var methods = [","/**"," * Determines whether each node has the given className."," * @method hasClass"," * @for Node"," * @param {String} className the class name to search for"," * @return {Boolean} Whether or not the element has the specified class"," */"," 'hasClass',","","/**"," * Adds a class name to each node."," * @method addClass"," * @param {String} className the class name to add to the node's class attribute"," * @chainable"," */"," 'addClass',","","/**"," * Removes a class name from each node."," * @method removeClass"," * @param {String} className the class name to remove from the node's class attribute"," * @chainable"," */"," 'removeClass',","","/**"," * Replace a class with another class for each node."," * If no oldClassName is present, the newClassName is simply added."," * @method replaceClass"," * @param {String} oldClassName the class name to be replaced"," * @param {String} newClassName the class name that will be replacing the old class name"," * @chainable"," */"," 'replaceClass',","","/**"," * If the className exists on the node it is removed, if it doesn't exist it is added."," * @method toggleClass"," * @param {String} className the class name to be toggled"," * @param {Boolean} force Option to force adding or removing the class."," * @chainable"," */"," 'toggleClass'","];","","Y.Node.importMethod(Y.DOM, methods);","/**"," * Determines whether each node has the given className."," * @method hasClass"," * @see Node.hasClass"," * @for NodeList"," * @param {String} className the class name to search for"," * @return {Array} An array of booleans for each node bound to the NodeList."," */","","/**"," * Adds a class name to each node."," * @method addClass"," * @see Node.addClass"," * @param {String} className the class name to add to the node's class attribute"," * @chainable"," */","","/**"," * Removes a class name from each node."," * @method removeClass"," * @see Node.removeClass"," * @param {String} className the class name to remove from the node's class attribute"," * @chainable"," */","","/**"," * Replace a class with another class for each node."," * If no oldClassName is present, the newClassName is simply added."," * @method replaceClass"," * @see Node.replaceClass"," * @param {String} oldClassName the class name to be replaced"," * @param {String} newClassName the class name that will be replacing the old class name"," * @chainable"," */","","/**"," * If the className exists on the node it is removed, if it doesn't exist it is added."," * @method toggleClass"," * @see Node.toggleClass"," * @param {String} className the class name to be toggled"," * @chainable"," */","Y.NodeList.importMethod(Y.Node.prototype, methods);","/**"," * @module node"," * @submodule node-base"," */","","var Y_Node = Y.Node,"," Y_DOM = Y.DOM;","","/**"," * Returns a new dom node using the provided markup string."," * @method create"," * @static"," * @param {String} html The markup used to create the element."," * Use `Y.Escape.html()`"," * to escape html content."," * @param {HTMLDocument} doc An optional document context"," * @return {Node} A Node instance bound to a DOM node or fragment"," * @for Node"," */","Y_Node.create = function(html, doc) {"," if (doc && doc._node) {"," doc = doc._node;"," }"," return Y.one(Y_DOM.create(html, doc));","};","","Y.mix(Y_Node.prototype, {"," /**"," * Creates a new Node using the provided markup string."," * @method create"," * @param {String} html The markup used to create the element."," * Use `Y.Escape.html()`"," * to escape html content."," * @param {HTMLDocument} doc An optional document context"," * @return {Node} A Node instance bound to a DOM node or fragment"," */"," create: Y_Node.create,",""," /**"," * Inserts the content before the reference node."," * @method insert"," * @param {String | Node | HTMLElement | NodeList | HTMLCollection} content The content to insert."," * Use `Y.Escape.html()`"," * to escape html content."," * @param {Int | Node | HTMLElement | String} where The position to insert at."," * Possible \"where\" arguments"," *
"," *
Y.Node
"," *
The Node to insert before
"," *
HTMLElement
"," *
The element to insert before
"," *
Int
"," *
The index of the child element to insert before
"," *
\"replace\"
"," *
Replaces the existing HTML
"," *
\"before\"
"," *
Inserts before the existing HTML
"," *
\"before\"
"," *
Inserts content before the node
"," *
\"after\"
"," *
Inserts content after the node
"," *
"," * @chainable"," */"," insert: function(content, where) {"," this._insert(content, where);"," return this;"," },",""," _insert: function(content, where) {"," var node = this._node,"," ret = null;",""," if (typeof where == 'number') { // allow index"," where = this._node.childNodes[where];"," } else if (where && where._node) { // Node"," where = where._node;"," }",""," if (content && typeof content != 'string') { // allow Node or NodeList/Array instances"," content = content._node || content._nodes || content;"," }"," ret = Y_DOM.addHTML(node, content, where);",""," return ret;"," },",""," /**"," * Inserts the content as the firstChild of the node."," * @method prepend"," * @param {String | Node | HTMLElement} content The content to insert."," * Use `Y.Escape.html()`"," * to escape html content."," * @chainable"," */"," prepend: function(content) {"," return this.insert(content, 0);"," },",""," /**"," * Inserts the content as the lastChild of the node."," * @method append"," * @param {String | Node | HTMLElement} content The content to insert."," * Use `Y.Escape.html()`"," * to escape html content."," * @chainable"," */"," append: function(content) {"," return this.insert(content, null);"," },",""," /**"," * @method appendChild"," * @param {String | HTMLElement | Node} node Node to be appended."," * Use `Y.Escape.html()`"," * to escape html content."," * @return {Node} The appended node"," */"," appendChild: function(node) {"," return Y_Node.scrubVal(this._insert(node));"," },",""," /**"," * @method insertBefore"," * @param {String | HTMLElement | Node} newNode Node to be appended"," * @param {HTMLElement | Node} refNode Node to be inserted before."," * Use `Y.Escape.html()`"," * to escape html content."," * @return {Node} The inserted node"," */"," insertBefore: function(newNode, refNode) {"," return Y.Node.scrubVal(this._insert(newNode, refNode));"," },",""," /**"," * Appends the node to the given node."," * @method appendTo"," * @param {Node | HTMLElement} node The node to append to"," * @chainable"," */"," appendTo: function(node) {"," Y.one(node).append(this);"," return this;"," },"," "," // This method is deprecated, and is intentionally left undocumented."," // Use `setHTML` instead."," setContent: function(content) {"," this._insert(content, 'replace');"," return this;"," },"," "," // This method is deprecated, and is intentionally left undocumented."," // Use `getHTML` instead."," getContent: function() {"," var node = this;",""," if (node._node.nodeType === 11) { // 11 === Node.DOCUMENT_FRAGMENT_NODE"," // \"this\", when it is a document fragment, must be cloned because"," // the nodes contained in the fragment actually disappear once"," // the fragment is appended anywhere"," node = node.create(\"
\").append(node.cloneNode(true));"," }",""," return node.get(\"innerHTML\");"," }","});","","/**"," * Replaces the node's current html content with the content provided."," * Note that this passes to innerHTML and is not escaped."," * Use `Y.Escape.html()`"," * to escape html content or `set('text')` to add as text."," * @method setHTML"," * @param {String | Node | HTMLElement | NodeList | HTMLCollection} content The content to insert"," * @chainable"," */","Y.Node.prototype.setHTML = Y.Node.prototype.setContent;","","/**"," * Returns the node's current html content (e.g. innerHTML)"," * @method getHTML"," * @return {String} The html content"," */","Y.Node.prototype.getHTML = Y.Node.prototype.getContent;","","Y.NodeList.importMethod(Y.Node.prototype, ["," /**"," * Called on each Node instance"," * @for NodeList"," * @method append"," * @see Node.append"," */"," 'append',",""," /**"," * Called on each Node instance"," * @for NodeList"," * @method insert"," * @see Node.insert"," */"," 'insert',",""," /**"," * Called on each Node instance"," * @for NodeList"," * @method appendChild"," * @see Node.appendChild"," */"," 'appendChild',",""," /**"," * Called on each Node instance"," * @for NodeList"," * @method insertBefore"," * @see Node.insertBefore"," */"," 'insertBefore',",""," /**"," * Called on each Node instance"," * @for NodeList"," * @method prepend"," * @see Node.prepend"," */"," 'prepend',",""," 'setContent',",""," 'getContent',",""," /**"," * Called on each Node instance"," * Note that this passes to innerHTML and is not escaped."," * Use `Y.Escape.html()`"," * to escape html content or `set('text')` to add as text."," * @for NodeList"," * @method setHTML"," * @see Node.setHTML"," */"," 'setHTML',",""," /**"," * Called on each Node instance"," * @for NodeList"," * @method getHTML"," * @see Node.getHTML"," */"," 'getHTML'","]);","/**"," * @module node"," * @submodule node-base"," */","","var Y_Node = Y.Node,"," Y_DOM = Y.DOM;","","/**"," * Static collection of configuration attributes for special handling"," * @property ATTRS"," * @static"," * @type object"," */","Y_Node.ATTRS = {"," /**"," * Allows for getting and setting the text of an element."," * Formatting is preserved and special characters are treated literally."," * @config text"," * @type String"," */"," text: {"," getter: function() {"," return Y_DOM.getText(this._node);"," },",""," setter: function(content) {"," Y_DOM.setText(this._node, content);"," return content;"," }"," },",""," /**"," * Allows for getting and setting the text of an element."," * Formatting is preserved and special characters are treated literally."," * @config for"," * @type String"," */"," 'for': {"," getter: function() {"," return Y_DOM.getAttribute(this._node, 'for');"," },",""," setter: function(val) {"," Y_DOM.setAttribute(this._node, 'for', val);"," return val;"," }"," },",""," 'options': {"," getter: function() {"," return this._node.getElementsByTagName('option');"," }"," },",""," /**"," * Returns a NodeList instance of all HTMLElement children."," * @readOnly"," * @config children"," * @type NodeList"," */"," 'children': {"," getter: function() {"," var node = this._node,"," children = node.children,"," childNodes, i, len;",""," if (!children) {"," childNodes = node.childNodes;"," children = [];",""," for (i = 0, len = childNodes.length; i < len; ++i) {"," if (childNodes[i].tagName) {"," children[children.length] = childNodes[i];"," }"," }"," }"," return Y.all(children);"," }"," },",""," value: {"," getter: function() {"," return Y_DOM.getValue(this._node);"," },",""," setter: function(val) {"," Y_DOM.setValue(this._node, val);"," return val;"," }"," }","};","","Y.Node.importMethod(Y.DOM, ["," /**"," * Allows setting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method setAttribute"," * @for Node"," * @for NodeList"," * @chainable"," * @param {string} name The attribute name"," * @param {string} value The value to set"," */"," 'setAttribute',"," /**"," * Allows getting attributes on DOM nodes, normalizing in some cases."," * This passes through to the DOM node, allowing for custom attributes."," * @method getAttribute"," * @for Node"," * @for NodeList"," * @param {string} name The attribute name"," * @return {string} The attribute value"," */"," 'getAttribute'","","]);","/**"," * @module node"," * @submodule node-base"," */","","var Y_Node = Y.Node;","var Y_NodeList = Y.NodeList;","/**"," * List of events that route to DOM events"," * @static"," * @property DOM_EVENTS"," * @for Node"," */","","Y_Node.DOM_EVENTS = {"," abort: 1,"," beforeunload: 1,"," blur: 1,"," change: 1,"," click: 1,"," close: 1,"," command: 1,"," contextmenu: 1,"," copy: 1,"," cut: 1,"," dblclick: 1,"," DOMMouseScroll: 1,"," drag: 1,"," dragstart: 1,"," dragenter: 1,"," dragover: 1,"," dragleave: 1,"," dragend: 1,"," drop: 1,"," error: 1,"," focus: 1,"," key: 1,"," keydown: 1,"," keypress: 1,"," keyup: 1,"," load: 1,"," message: 1,"," mousedown: 1,"," mouseenter: 1,"," mouseleave: 1,"," mousemove: 1,"," mousemultiwheel: 1,"," mouseout: 1,"," mouseover: 1,"," mouseup: 1,"," mousewheel: 1,"," orientationchange: 1,"," paste: 1,"," reset: 1,"," resize: 1,"," select: 1,"," selectstart: 1,"," submit: 1,"," scroll: 1,"," textInput: 1,"," unload: 1","};","","// Add custom event adaptors to this list. This will make it so","// that delegate, key, available, contentready, etc all will","// be available through Node.on","Y.mix(Y_Node.DOM_EVENTS, Y.Env.evt.plugins);","","Y.augment(Y_Node, Y.EventTarget);","","Y.mix(Y_Node.prototype, {"," /**"," * Removes event listeners from the node and (optionally) its subtree"," * @method purge"," * @param {Boolean} recurse (optional) Whether or not to remove listeners from the"," * node's subtree"," * @param {String} type (optional) Only remove listeners of the specified type"," * @chainable"," *"," */"," purge: function(recurse, type) {"," Y.Event.purgeElement(this._node, recurse, type);"," return this;"," }","","});","","Y.mix(Y.NodeList.prototype, {"," _prepEvtArgs: function(type, fn, context) {"," // map to Y.on/after signature (type, fn, nodes, context, arg1, arg2, etc)"," var args = Y.Array(arguments, 0, true);",""," if (args.length < 2) { // type only (event hash) just add nodes"," args[2] = this._nodes;"," } else {"," args.splice(2, 0, this._nodes);"," }",""," args[3] = context || this; // default to NodeList instance as context",""," return args;"," },",""," /**"," Subscribe a callback function for each `Node` in the collection to execute"," in response to a DOM event.",""," NOTE: Generally, the `on()` method should be avoided on `NodeLists`, in"," favor of using event delegation from a parent Node. See the Event user"," guide for details.",""," Most DOM events are associated with a preventable default behavior, such as"," link clicks navigating to a new page. Callbacks are passed a"," `DOMEventFacade` object as their first argument (usually called `e`) that"," can be used to prevent this default behavior with `e.preventDefault()`. See"," the `DOMEventFacade` API for all available properties and methods on the"," object.",""," By default, the `this` object will be the `NodeList` that the subscription"," came from, not the `Node` that received the event. Use"," `e.currentTarget` to refer to the `Node`.",""," Returning `false` from a callback is supported as an alternative to calling"," `e.preventDefault(); e.stopPropagation();`. However, it is recommended to"," use the event methods.",""," @example",""," Y.all(\".sku\").on(\"keydown\", function (e) {"," if (e.keyCode === 13) {"," e.preventDefault();",""," // Use e.currentTarget to refer to the individual Node"," var item = Y.MyApp.searchInventory( e.currentTarget.get('value') );"," // etc ..."," }"," });",""," @method on"," @param {String} type The name of the event"," @param {Function} fn The callback to execute in response to the event"," @param {Object} [context] Override `this` object in callback"," @param {Any} [arg*] 0..n additional arguments to supply to the subscriber"," @return {EventHandle} A subscription handle capable of detaching that"," subscription"," @for NodeList"," **/"," on: function(type, fn, context) {"," return Y.on.apply(Y, this._prepEvtArgs.apply(this, arguments));"," },",""," /**"," * Applies an one-time event listener to each Node bound to the NodeList."," * @method once"," * @param {String} type The event being listened for"," * @param {Function} fn The handler to call when the event fires"," * @param {Object} context The context to call the handler with."," * Default is the NodeList instance."," * @return {EventHandle} A subscription handle capable of detaching that"," * subscription"," * @for NodeList"," */"," once: function(type, fn, context) {"," return Y.once.apply(Y, this._prepEvtArgs.apply(this, arguments));"," },",""," /**"," * Applies an event listener to each Node bound to the NodeList."," * The handler is called only after all on() handlers are called"," * and the event is not prevented."," * @method after"," * @param {String} type The event being listened for"," * @param {Function} fn The handler to call when the event fires"," * @param {Object} context The context to call the handler with."," * Default is the NodeList instance."," * @return {EventHandle} A subscription handle capable of detaching that"," * subscription"," * @for NodeList"," */"," after: function(type, fn, context) {"," return Y.after.apply(Y, this._prepEvtArgs.apply(this, arguments));"," },",""," /**"," * Applies an one-time event listener to each Node bound to the NodeList"," * that will be called only after all on() handlers are called and the"," * event is not prevented."," *"," * @method onceAfter"," * @param {String} type The event being listened for"," * @param {Function} fn The handler to call when the event fires"," * @param {Object} context The context to call the handler with."," * Default is the NodeList instance."," * @return {EventHandle} A subscription handle capable of detaching that"," * subscription"," * @for NodeList"," */"," onceAfter: function(type, fn, context) {"," return Y.onceAfter.apply(Y, this._prepEvtArgs.apply(this, arguments));"," }","});","","Y_NodeList.importMethod(Y.Node.prototype, ["," /**"," * Called on each Node instance"," * @method detach"," * @see Node.detach"," * @for NodeList"," */"," 'detach',",""," /** Called on each Node instance"," * @method detachAll"," * @see Node.detachAll"," * @for NodeList"," */"," 'detachAll'","]);","","/**","Subscribe a callback function to execute in response to a DOM event or custom","event.","","Most DOM events are associated with a preventable default behavior such as","link clicks navigating to a new page. Callbacks are passed a `DOMEventFacade`","object as their first argument (usually called `e`) that can be used to","prevent this default behavior with `e.preventDefault()`. See the","`DOMEventFacade` API for all available properties and methods on the object.","","If the event name passed as the first parameter is not a whitelisted DOM event,","it will be treated as a custom event subscriptions, allowing","`node.fire('customEventName')` later in the code. Refer to the Event user guide","for the full DOM event whitelist.","","By default, the `this` object in the callback will refer to the subscribed","`Node`.","","Returning `false` from a callback is supported as an alternative to calling","`e.preventDefault(); e.stopPropagation();`. However, it is recommended to use","the event methods.","","@example",""," Y.one(\"#my-form\").on(\"submit\", function (e) {"," e.preventDefault();",""," // proceed with ajax form submission instead..."," });","","@method on","@param {String} type The name of the event","@param {Function} fn The callback to execute in response to the event","@param {Object} [context] Override `this` object in callback","@param {Any} [arg*] 0..n additional arguments to supply to the subscriber","@return {EventHandle} A subscription handle capable of detaching that"," subscription","@for Node","**/","","Y.mix(Y.Node.ATTRS, {"," offsetHeight: {"," setter: function(h) {"," Y.DOM.setHeight(this._node, h);"," return h;"," },",""," getter: function() {"," return this._node.offsetHeight;"," }"," },",""," offsetWidth: {"," setter: function(w) {"," Y.DOM.setWidth(this._node, w);"," return w;"," },",""," getter: function() {"," return this._node.offsetWidth;"," }"," }","});","","Y.mix(Y.Node.prototype, {"," sizeTo: function(w, h) {"," var node;"," if (arguments.length < 2) {"," node = Y.one(w);"," w = node.get('offsetWidth');"," h = node.get('offsetHeight');"," }",""," this.setAttrs({"," offsetWidth: w,"," offsetHeight: h"," });"," }","});","","if (!Y.config.doc.documentElement.hasAttribute) { // IE < 8"," Y.Node.prototype.hasAttribute = function(attr) {"," if (attr === 'value') {"," if (this.get('value') !== \"\") { // IE < 8 fails to populate specified when set in HTML"," return true;"," }"," }"," return !!(this._node.attributes[attr] &&"," this._node.attributes[attr].specified);"," };","}","","// IE throws an error when calling focus() on an element that's invisible, not","// displayed, or disabled.","Y.Node.prototype.focus = function () {"," try {"," this._node.focus();"," } catch (e) {"," }",""," return this;","};","","// IE throws error when setting input.type = 'hidden',","// input.setAttribute('type', 'hidden') and input.attributes.type.value = 'hidden'","Y.Node.ATTRS.type = {"," setter: function(val) {"," if (val === 'hidden') {"," try {"," this._node.type = 'hidden';"," } catch(e) {"," this._node.style.display = 'none';"," this._inputType = 'hidden';"," }"," } else {"," try { // IE errors when changing the type from \"hidden'"," this._node.type = val;"," } catch (e) {"," }"," }"," return val;"," },",""," getter: function() {"," return this._inputType || this._node.type;"," },",""," _bypassProxy: true // don't update DOM when using with Attribute","};","","if (Y.config.doc.createElement('form').elements.nodeType) {"," // IE: elements collection is also FORM node which trips up scrubVal."," Y.Node.ATTRS.elements = {"," getter: function() {"," return this.all('input, textarea, button, select');"," }"," };","}","/**"," * Provides methods for managing custom Node data."," *"," * @module node"," * @main node"," * @submodule node-data"," */","","Y.mix(Y.Node.prototype, {"," _initData: function() {"," if (! ('_data' in this)) {"," this._data = {};"," }"," },",""," /**"," * @method getData"," * @for Node"," * @description Retrieves arbitrary data stored on a Node instance."," * If no data is associated with the Node, it will attempt to retrieve"," * a value from the corresponding HTML data attribute. (e.g. node.getData('foo')"," * will check node.getAttribute('data-foo'))."," * @param {string} name Optional name of the data field to retrieve."," * If no name is given, all data is returned."," * @return {any | Object} Whatever is stored at the given field,"," * or an object hash of all fields."," */"," getData: function(name) {"," this._initData();"," var data = this._data,"," ret = data;",""," if (arguments.length) { // single field"," if (name in data) {"," ret = data[name];"," } else { // initialize from HTML attribute"," ret = this._getDataAttribute(name);"," }"," } else if (typeof data == 'object' && data !== null) { // all fields"," ret = {};"," Y.Object.each(data, function(v, n) {"," ret[n] = v;"," });",""," ret = this._getDataAttributes(ret);"," }",""," return ret;",""," },",""," _getDataAttributes: function(ret) {"," ret = ret || {};"," var i = 0,"," attrs = this._node.attributes,"," len = attrs.length,"," prefix = this.DATA_PREFIX,"," prefixLength = prefix.length,"," name;",""," while (i < len) {"," name = attrs[i].name;"," if (name.indexOf(prefix) === 0) {"," name = name.substr(prefixLength);"," if (!(name in ret)) { // only merge if not already stored"," ret[name] = this._getDataAttribute(name);"," }"," }",""," i += 1;"," }",""," return ret;"," },",""," _getDataAttribute: function(name) {"," name = this.DATA_PREFIX + name;",""," var node = this._node,"," attrs = node.attributes,"," data = attrs && attrs[name] && attrs[name].value;",""," return data;"," },",""," /**"," * @method setData"," * @for Node"," * @description Stores arbitrary data on a Node instance."," * This is not stored with the DOM node."," * @param {string} name The name of the field to set. If no val"," * is given, name is treated as the data and overrides any existing data."," * @param {any} val The value to be assigned to the field."," * @chainable"," */"," setData: function(name, val) {"," this._initData();"," if (arguments.length > 1) {"," this._data[name] = val;"," } else {"," this._data = name;"," }",""," return this;"," },",""," /**"," * @method clearData"," * @for Node"," * @description Clears internally stored data."," * @param {string} name The name of the field to clear. If no name"," * is given, all data is cleared."," * @chainable"," */"," clearData: function(name) {"," if ('_data' in this) {"," if (typeof name != 'undefined') {"," delete this._data[name];"," } else {"," delete this._data;"," }"," }",""," return this;"," }","});","","Y.mix(Y.NodeList.prototype, {"," /**"," * @method getData"," * @for NodeList"," * @description Retrieves arbitrary data stored on each Node instance"," * bound to the NodeList."," * @see Node"," * @param {string} name Optional name of the data field to retrieve."," * If no name is given, all data is returned."," * @return {Array} An array containing all of the data for each Node instance."," * or an object hash of all fields."," */"," getData: function(name) {"," var args = (arguments.length) ? [name] : [];"," return this._invoke('getData', args, true);"," },",""," /**"," * @method setData"," * @for NodeList"," * @description Stores arbitrary data on each Node instance bound to the"," * NodeList. This is not stored with the DOM node."," * @param {string} name The name of the field to set. If no name"," * is given, name is treated as the data and overrides any existing data."," * @param {any} val The value to be assigned to the field."," * @chainable"," */"," setData: function(name, val) {"," var args = (arguments.length > 1) ? [name, val] : [name];"," return this._invoke('setData', args);"," },",""," /**"," * @method clearData"," * @for NodeList"," * @description Clears data on all Node instances bound to the NodeList."," * @param {string} name The name of the field to clear. If no name"," * is given, all data is cleared."," * @chainable"," */"," clearData: function(name) {"," var args = (arguments.length) ? [name] : [];"," return this._invoke('clearData', [name]);"," }","});","","","}, '@VERSION@', {\"requires\": [\"event-base\", \"node-core\", \"dom-base\", \"dom-style\"]});","","}());"]}; +} +var __cov_A7OBEPHvvfM05NrTBWnPcQ = __coverage__['build/node-base/node-base.js']; +__cov_A7OBEPHvvfM05NrTBWnPcQ.s['1']++;YUI.add('node-base',function(Y,NAME){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['1']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['2']++;var methods=['hasClass','addClass','removeClass','replaceClass','toggleClass'];__cov_A7OBEPHvvfM05NrTBWnPcQ.s['3']++;Y.Node.importMethod(Y.DOM,methods);__cov_A7OBEPHvvfM05NrTBWnPcQ.s['4']++;Y.NodeList.importMethod(Y.Node.prototype,methods);__cov_A7OBEPHvvfM05NrTBWnPcQ.s['5']++;var Y_Node=Y.Node,Y_DOM=Y.DOM;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['6']++;Y_Node.create=function(html,doc){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['2']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['7']++;if((__cov_A7OBEPHvvfM05NrTBWnPcQ.b['2'][0]++,doc)&&(__cov_A7OBEPHvvfM05NrTBWnPcQ.b['2'][1]++,doc._node)){__cov_A7OBEPHvvfM05NrTBWnPcQ.b['1'][0]++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['8']++;doc=doc._node;}else{__cov_A7OBEPHvvfM05NrTBWnPcQ.b['1'][1]++;}__cov_A7OBEPHvvfM05NrTBWnPcQ.s['9']++;return Y.one(Y_DOM.create(html,doc));};__cov_A7OBEPHvvfM05NrTBWnPcQ.s['10']++;Y.mix(Y_Node.prototype,{create:Y_Node.create,insert:function(content,where){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['3']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['11']++;this._insert(content,where);__cov_A7OBEPHvvfM05NrTBWnPcQ.s['12']++;return this;},_insert:function(content,where){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['4']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['13']++;var node=this._node,ret=null;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['14']++;if(typeof where=='number'){__cov_A7OBEPHvvfM05NrTBWnPcQ.b['3'][0]++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['15']++;where=this._node.childNodes[where];}else{__cov_A7OBEPHvvfM05NrTBWnPcQ.b['3'][1]++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['16']++;if((__cov_A7OBEPHvvfM05NrTBWnPcQ.b['5'][0]++,where)&&(__cov_A7OBEPHvvfM05NrTBWnPcQ.b['5'][1]++,where._node)){__cov_A7OBEPHvvfM05NrTBWnPcQ.b['4'][0]++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['17']++;where=where._node;}else{__cov_A7OBEPHvvfM05NrTBWnPcQ.b['4'][1]++;}}__cov_A7OBEPHvvfM05NrTBWnPcQ.s['18']++;if((__cov_A7OBEPHvvfM05NrTBWnPcQ.b['7'][0]++,content)&&(__cov_A7OBEPHvvfM05NrTBWnPcQ.b['7'][1]++,typeof content!='string')){__cov_A7OBEPHvvfM05NrTBWnPcQ.b['6'][0]++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['19']++;content=(__cov_A7OBEPHvvfM05NrTBWnPcQ.b['8'][0]++,content._node)||(__cov_A7OBEPHvvfM05NrTBWnPcQ.b['8'][1]++,content._nodes)||(__cov_A7OBEPHvvfM05NrTBWnPcQ.b['8'][2]++,content);}else{__cov_A7OBEPHvvfM05NrTBWnPcQ.b['6'][1]++;}__cov_A7OBEPHvvfM05NrTBWnPcQ.s['20']++;ret=Y_DOM.addHTML(node,content,where);__cov_A7OBEPHvvfM05NrTBWnPcQ.s['21']++;return ret;},prepend:function(content){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['5']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['22']++;return this.insert(content,0);},append:function(content){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['6']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['23']++;return this.insert(content,null);},appendChild:function(node){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['7']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['24']++;return Y_Node.scrubVal(this._insert(node));},insertBefore:function(newNode,refNode){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['8']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['25']++;return Y.Node.scrubVal(this._insert(newNode,refNode));},appendTo:function(node){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['9']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['26']++;Y.one(node).append(this);__cov_A7OBEPHvvfM05NrTBWnPcQ.s['27']++;return this;},setContent:function(content){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['10']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['28']++;this._insert(content,'replace');__cov_A7OBEPHvvfM05NrTBWnPcQ.s['29']++;return this;},getContent:function(){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['11']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['30']++;var node=this;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['31']++;if(node._node.nodeType===11){__cov_A7OBEPHvvfM05NrTBWnPcQ.b['9'][0]++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['32']++;node=node.create('
').append(node.cloneNode(true));}else{__cov_A7OBEPHvvfM05NrTBWnPcQ.b['9'][1]++;}__cov_A7OBEPHvvfM05NrTBWnPcQ.s['33']++;return node.get('innerHTML');}});__cov_A7OBEPHvvfM05NrTBWnPcQ.s['34']++;Y.Node.prototype.setHTML=Y.Node.prototype.setContent;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['35']++;Y.Node.prototype.getHTML=Y.Node.prototype.getContent;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['36']++;Y.NodeList.importMethod(Y.Node.prototype,['append','insert','appendChild','insertBefore','prepend','setContent','getContent','setHTML','getHTML']);__cov_A7OBEPHvvfM05NrTBWnPcQ.s['37']++;var Y_Node=Y.Node,Y_DOM=Y.DOM;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['38']++;Y_Node.ATTRS={text:{getter:function(){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['12']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['39']++;return Y_DOM.getText(this._node);},setter:function(content){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['13']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['40']++;Y_DOM.setText(this._node,content);__cov_A7OBEPHvvfM05NrTBWnPcQ.s['41']++;return content;}},'for':{getter:function(){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['14']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['42']++;return Y_DOM.getAttribute(this._node,'for');},setter:function(val){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['15']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['43']++;Y_DOM.setAttribute(this._node,'for',val);__cov_A7OBEPHvvfM05NrTBWnPcQ.s['44']++;return val;}},'options':{getter:function(){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['16']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['45']++;return this._node.getElementsByTagName('option');}},'children':{getter:function(){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['17']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['46']++;var node=this._node,children=node.children,childNodes,i,len;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['47']++;if(!children){__cov_A7OBEPHvvfM05NrTBWnPcQ.b['10'][0]++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['48']++;childNodes=node.childNodes;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['49']++;children=[];__cov_A7OBEPHvvfM05NrTBWnPcQ.s['50']++;for(i=0,len=childNodes.length;i1){__cov_A7OBEPHvvfM05NrTBWnPcQ.b['31'][0]++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['145']++;this._data[name]=val;}else{__cov_A7OBEPHvvfM05NrTBWnPcQ.b['31'][1]++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['146']++;this._data=name;}__cov_A7OBEPHvvfM05NrTBWnPcQ.s['147']++;return this;},clearData:function(name){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['42']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['148']++;if('_data'in this){__cov_A7OBEPHvvfM05NrTBWnPcQ.b['32'][0]++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['149']++;if(typeof name!='undefined'){__cov_A7OBEPHvvfM05NrTBWnPcQ.b['33'][0]++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['150']++;delete this._data[name];}else{__cov_A7OBEPHvvfM05NrTBWnPcQ.b['33'][1]++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['151']++;delete this._data;}}else{__cov_A7OBEPHvvfM05NrTBWnPcQ.b['32'][1]++;}__cov_A7OBEPHvvfM05NrTBWnPcQ.s['152']++;return this;}});__cov_A7OBEPHvvfM05NrTBWnPcQ.s['153']++;Y.mix(Y.NodeList.prototype,{getData:function(name){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['43']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['154']++;var args=arguments.length?(__cov_A7OBEPHvvfM05NrTBWnPcQ.b['34'][0]++,[name]):(__cov_A7OBEPHvvfM05NrTBWnPcQ.b['34'][1]++,[]);__cov_A7OBEPHvvfM05NrTBWnPcQ.s['155']++;return this._invoke('getData',args,true);},setData:function(name,val){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['44']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['156']++;var args=arguments.length>1?(__cov_A7OBEPHvvfM05NrTBWnPcQ.b['35'][0]++,[name,val]):(__cov_A7OBEPHvvfM05NrTBWnPcQ.b['35'][1]++,[name]);__cov_A7OBEPHvvfM05NrTBWnPcQ.s['157']++;return this._invoke('setData',args);},clearData:function(name){__cov_A7OBEPHvvfM05NrTBWnPcQ.f['45']++;__cov_A7OBEPHvvfM05NrTBWnPcQ.s['158']++;var args=arguments.length?(__cov_A7OBEPHvvfM05NrTBWnPcQ.b['36'][0]++,[name]):(__cov_A7OBEPHvvfM05NrTBWnPcQ.b['36'][1]++,[]);__cov_A7OBEPHvvfM05NrTBWnPcQ.s['159']++;return this._invoke('clearData',[name]);}});},'@VERSION@',{'requires':['event-base','node-core','dom-base','dom-style']});