|
10 __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,"160":0,"161":0,"162":0,"163":0,"164":0,"165":0,"166":0,"167":0,"168":0,"169":0,"170":0,"171":0,"172":0,"173":0,"174":0,"175":0,"176":0,"177":0,"178":0,"179":0,"180":0,"181":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],"31":[0,0],"32":[0,0],"33":[0,0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[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,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":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":253,"loc":{"start":{"line":253,"column":16},"end":{"line":253,"column":34}}},"11":{"name":"(anonymous_11)","line":264,"loc":{"start":{"line":264,"column":16},"end":{"line":264,"column":34}}},"12":{"name":"(anonymous_12)","line":385,"loc":{"start":{"line":385,"column":16},"end":{"line":385,"column":27}}},"13":{"name":"(anonymous_13)","line":389,"loc":{"start":{"line":389,"column":16},"end":{"line":389,"column":34}}},"14":{"name":"(anonymous_14)","line":402,"loc":{"start":{"line":402,"column":16},"end":{"line":402,"column":27}}},"15":{"name":"(anonymous_15)","line":406,"loc":{"start":{"line":406,"column":16},"end":{"line":406,"column":30}}},"16":{"name":"(anonymous_16)","line":413,"loc":{"start":{"line":413,"column":16},"end":{"line":413,"column":27}}},"17":{"name":"(anonymous_17)","line":425,"loc":{"start":{"line":425,"column":16},"end":{"line":425,"column":27}}},"18":{"name":"(anonymous_18)","line":445,"loc":{"start":{"line":445,"column":16},"end":{"line":445,"column":27}}},"19":{"name":"(anonymous_19)","line":449,"loc":{"start":{"line":449,"column":16},"end":{"line":449,"column":30}}},"20":{"name":"(anonymous_20)","line":557,"loc":{"start":{"line":557,"column":11},"end":{"line":557,"column":35}}},"21":{"name":"(anonymous_21)","line":565,"loc":{"start":{"line":565,"column":18},"end":{"line":565,"column":46}}},"22":{"name":"(anonymous_22)","line":624,"loc":{"start":{"line":624,"column":8},"end":{"line":624,"column":36}}},"23":{"name":"(anonymous_23)","line":639,"loc":{"start":{"line":639,"column":10},"end":{"line":639,"column":38}}},"24":{"name":"(anonymous_24)","line":656,"loc":{"start":{"line":656,"column":11},"end":{"line":656,"column":39}}},"25":{"name":"(anonymous_25)","line":674,"loc":{"start":{"line":674,"column":15},"end":{"line":674,"column":43}}},"26":{"name":"(anonymous_26)","line":738,"loc":{"start":{"line":738,"column":16},"end":{"line":738,"column":28}}},"27":{"name":"(anonymous_27)","line":743,"loc":{"start":{"line":743,"column":16},"end":{"line":743,"column":27}}},"28":{"name":"(anonymous_28)","line":749,"loc":{"start":{"line":749,"column":16},"end":{"line":749,"column":28}}},"29":{"name":"(anonymous_29)","line":754,"loc":{"start":{"line":754,"column":16},"end":{"line":754,"column":27}}},"30":{"name":"(anonymous_30)","line":761,"loc":{"start":{"line":761,"column":12},"end":{"line":761,"column":27}}},"31":{"name":"(anonymous_31)","line":795,"loc":{"start":{"line":795,"column":10},"end":{"line":795,"column":29}}},"32":{"name":"(anonymous_32)","line":808,"loc":{"start":{"line":808,"column":11},"end":{"line":808,"column":22}}},"33":{"name":"(anonymous_33)","line":818,"loc":{"start":{"line":818,"column":15},"end":{"line":818,"column":26}}},"34":{"name":"(anonymous_34)","line":833,"loc":{"start":{"line":833,"column":16},"end":{"line":833,"column":39}}},"35":{"name":"(anonymous_35)","line":838,"loc":{"start":{"line":838,"column":17},"end":{"line":838,"column":40}}},"36":{"name":"(anonymous_36)","line":870,"loc":{"start":{"line":870,"column":10},"end":{"line":870,"column":29}}},"37":{"name":"(anonymous_37)","line":883,"loc":{"start":{"line":883,"column":11},"end":{"line":883,"column":22}}},"38":{"name":"(anonymous_38)","line":935,"loc":{"start":{"line":935,"column":36},"end":{"line":935,"column":51}}},"39":{"name":"(anonymous_39)","line":948,"loc":{"start":{"line":948,"column":25},"end":{"line":948,"column":37}}},"40":{"name":"(anonymous_40)","line":960,"loc":{"start":{"line":960,"column":12},"end":{"line":960,"column":26}}},"41":{"name":"(anonymous_41)","line":977,"loc":{"start":{"line":977,"column":12},"end":{"line":977,"column":23}}},"42":{"name":"(anonymous_42)","line":987,"loc":{"start":{"line":987,"column":20},"end":{"line":987,"column":31}}},"43":{"name":"(anonymous_43)","line":1002,"loc":{"start":{"line":1002,"column":15},"end":{"line":1002,"column":26}}},"44":{"name":"(anonymous_44)","line":1020,"loc":{"start":{"line":1020,"column":13},"end":{"line":1020,"column":28}}},"45":{"name":"(anonymous_45)","line":1033,"loc":{"start":{"line":1033,"column":32},"end":{"line":1033,"column":47}}},"46":{"name":"(anonymous_46)","line":1044,"loc":{"start":{"line":1044,"column":24},"end":{"line":1044,"column":38}}},"47":{"name":"(anonymous_47)","line":1068,"loc":{"start":{"line":1068,"column":23},"end":{"line":1068,"column":38}}},"48":{"name":"(anonymous_48)","line":1088,"loc":{"start":{"line":1088,"column":13},"end":{"line":1088,"column":33}}},"49":{"name":"(anonymous_49)","line":1107,"loc":{"start":{"line":1107,"column":15},"end":{"line":1107,"column":30}}},"50":{"name":"(anonymous_50)","line":1132,"loc":{"start":{"line":1132,"column":13},"end":{"line":1132,"column":28}}},"51":{"name":"(anonymous_51)","line":1147,"loc":{"start":{"line":1147,"column":13},"end":{"line":1147,"column":33}}},"52":{"name":"(anonymous_52)","line":1160,"loc":{"start":{"line":1160,"column":15},"end":{"line":1160,"column":30}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1167,"column":68}},"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":267,"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":254,"column":8},"end":{"line":254,"column":41}},"29":{"start":{"line":255,"column":8},"end":{"line":255,"column":20}},"30":{"start":{"line":265,"column":8},"end":{"line":265,"column":37}},"31":{"start":{"line":277,"column":0},"end":{"line":277,"column":55}},"32":{"start":{"line":284,"column":0},"end":{"line":284,"column":55}},"33":{"start":{"line":286,"column":0},"end":{"line":362,"column":3}},"34":{"start":{"line":368,"column":0},"end":{"line":369,"column":18}},"35":{"start":{"line":377,"column":0},"end":{"line":454,"column":2}},"36":{"start":{"line":386,"column":12},"end":{"line":386,"column":45}},"37":{"start":{"line":390,"column":12},"end":{"line":390,"column":47}},"38":{"start":{"line":391,"column":12},"end":{"line":391,"column":27}},"39":{"start":{"line":403,"column":12},"end":{"line":403,"column":57}},"40":{"start":{"line":407,"column":12},"end":{"line":407,"column":55}},"41":{"start":{"line":408,"column":12},"end":{"line":408,"column":23}},"42":{"start":{"line":414,"column":12},"end":{"line":414,"column":61}},"43":{"start":{"line":426,"column":12},"end":{"line":428,"column":35}},"44":{"start":{"line":430,"column":12},"end":{"line":439,"column":13}},"45":{"start":{"line":431,"column":16},"end":{"line":431,"column":45}},"46":{"start":{"line":432,"column":16},"end":{"line":432,"column":30}},"47":{"start":{"line":434,"column":16},"end":{"line":438,"column":17}},"48":{"start":{"line":435,"column":20},"end":{"line":437,"column":21}},"49":{"start":{"line":436,"column":24},"end":{"line":436,"column":66}},"50":{"start":{"line":440,"column":12},"end":{"line":440,"column":35}},"51":{"start":{"line":446,"column":12},"end":{"line":446,"column":46}},"52":{"start":{"line":450,"column":12},"end":{"line":450,"column":44}},"53":{"start":{"line":451,"column":12},"end":{"line":451,"column":23}},"54":{"start":{"line":456,"column":0},"end":{"line":479,"column":3}},"55":{"start":{"line":485,"column":0},"end":{"line":485,"column":20}},"56":{"start":{"line":486,"column":0},"end":{"line":486,"column":28}},"57":{"start":{"line":494,"column":0},"end":{"line":538,"column":2}},"58":{"start":{"line":543,"column":0},"end":{"line":543,"column":44}},"59":{"start":{"line":545,"column":0},"end":{"line":545,"column":33}},"60":{"start":{"line":547,"column":0},"end":{"line":562,"column":3}},"61":{"start":{"line":558,"column":8},"end":{"line":558,"column":56}},"62":{"start":{"line":559,"column":8},"end":{"line":559,"column":20}},"63":{"start":{"line":564,"column":0},"end":{"line":677,"column":3}},"64":{"start":{"line":567,"column":8},"end":{"line":567,"column":47}},"65":{"start":{"line":569,"column":8},"end":{"line":573,"column":9}},"66":{"start":{"line":570,"column":12},"end":{"line":570,"column":34}},"67":{"start":{"line":572,"column":12},"end":{"line":572,"column":43}},"68":{"start":{"line":575,"column":8},"end":{"line":575,"column":34}},"69":{"start":{"line":577,"column":8},"end":{"line":577,"column":20}},"70":{"start":{"line":625,"column":8},"end":{"line":625,"column":71}},"71":{"start":{"line":640,"column":8},"end":{"line":640,"column":73}},"72":{"start":{"line":657,"column":8},"end":{"line":657,"column":74}},"73":{"start":{"line":675,"column":8},"end":{"line":675,"column":78}},"74":{"start":{"line":679,"column":0},"end":{"line":694,"column":3}},"75":{"start":{"line":736,"column":0},"end":{"line":758,"column":3}},"76":{"start":{"line":739,"column":12},"end":{"line":739,"column":43}},"77":{"start":{"line":740,"column":12},"end":{"line":740,"column":21}},"78":{"start":{"line":744,"column":12},"end":{"line":744,"column":43}},"79":{"start":{"line":750,"column":12},"end":{"line":750,"column":42}},"80":{"start":{"line":751,"column":12},"end":{"line":751,"column":21}},"81":{"start":{"line":755,"column":12},"end":{"line":755,"column":42}},"82":{"start":{"line":760,"column":0},"end":{"line":774,"column":3}},"83":{"start":{"line":762,"column":8},"end":{"line":762,"column":17}},"84":{"start":{"line":763,"column":8},"end":{"line":767,"column":9}},"85":{"start":{"line":764,"column":12},"end":{"line":764,"column":28}},"86":{"start":{"line":765,"column":12},"end":{"line":765,"column":40}},"87":{"start":{"line":766,"column":12},"end":{"line":766,"column":41}},"88":{"start":{"line":769,"column":8},"end":{"line":772,"column":11}},"89":{"start":{"line":780,"column":0},"end":{"line":780,"column":20}},"90":{"start":{"line":782,"column":0},"end":{"line":891,"column":3}},"91":{"start":{"line":796,"column":8},"end":{"line":796,"column":51}},"92":{"start":{"line":797,"column":8},"end":{"line":797,"column":40}},"93":{"start":{"line":798,"column":8},"end":{"line":798,"column":20}},"94":{"start":{"line":809,"column":8},"end":{"line":809,"column":39}},"95":{"start":{"line":814,"column":8},"end":{"line":814,"column":37}},"96":{"start":{"line":819,"column":8},"end":{"line":819,"column":67}},"97":{"start":{"line":834,"column":8},"end":{"line":834,"column":48}},"98":{"start":{"line":835,"column":8},"end":{"line":835,"column":20}},"99":{"start":{"line":839,"column":8},"end":{"line":839,"column":51}},"100":{"start":{"line":842,"column":8},"end":{"line":844,"column":9}},"101":{"start":{"line":843,"column":12},"end":{"line":843,"column":44}},"102":{"start":{"line":846,"column":8},"end":{"line":850,"column":9}},"103":{"start":{"line":847,"column":12},"end":{"line":847,"column":25}},"104":{"start":{"line":849,"column":12},"end":{"line":849,"column":25}},"105":{"start":{"line":852,"column":8},"end":{"line":854,"column":9}},"106":{"start":{"line":853,"column":12},"end":{"line":853,"column":32}},"107":{"start":{"line":856,"column":8},"end":{"line":856,"column":20}},"108":{"start":{"line":871,"column":8},"end":{"line":871,"column":51}},"109":{"start":{"line":872,"column":8},"end":{"line":872,"column":41}},"110":{"start":{"line":873,"column":8},"end":{"line":873,"column":20}},"111":{"start":{"line":884,"column":8},"end":{"line":884,"column":42}},"112":{"start":{"line":889,"column":8},"end":{"line":889,"column":41}},"113":{"start":{"line":893,"column":0},"end":{"line":932,"column":3}},"114":{"start":{"line":934,"column":0},"end":{"line":944,"column":1}},"115":{"start":{"line":935,"column":4},"end":{"line":943,"column":6}},"116":{"start":{"line":936,"column":8},"end":{"line":940,"column":9}},"117":{"start":{"line":937,"column":12},"end":{"line":939,"column":13}},"118":{"start":{"line":938,"column":16},"end":{"line":938,"column":28}},"119":{"start":{"line":941,"column":8},"end":{"line":942,"column":55}},"120":{"start":{"line":948,"column":0},"end":{"line":955,"column":2}},"121":{"start":{"line":949,"column":4},"end":{"line":952,"column":5}},"122":{"start":{"line":950,"column":8},"end":{"line":950,"column":27}},"123":{"start":{"line":954,"column":4},"end":{"line":954,"column":16}},"124":{"start":{"line":959,"column":0},"end":{"line":982,"column":2}},"125":{"start":{"line":961,"column":8},"end":{"line":973,"column":9}},"126":{"start":{"line":962,"column":12},"end":{"line":967,"column":13}},"127":{"start":{"line":963,"column":16},"end":{"line":963,"column":43}},"128":{"start":{"line":965,"column":16},"end":{"line":965,"column":49}},"129":{"start":{"line":966,"column":16},"end":{"line":966,"column":43}},"130":{"start":{"line":969,"column":12},"end":{"line":972,"column":13}},"131":{"start":{"line":970,"column":16},"end":{"line":970,"column":38}},"132":{"start":{"line":974,"column":8},"end":{"line":974,"column":19}},"133":{"start":{"line":978,"column":8},"end":{"line":978,"column":50}},"134":{"start":{"line":984,"column":0},"end":{"line":991,"column":1}},"135":{"start":{"line":986,"column":4},"end":{"line":990,"column":6}},"136":{"start":{"line":988,"column":16},"end":{"line":988,"column":67}},"137":{"start":{"line":1001,"column":0},"end":{"line":1118,"column":3}},"138":{"start":{"line":1003,"column":8},"end":{"line":1005,"column":9}},"139":{"start":{"line":1004,"column":12},"end":{"line":1004,"column":28}},"140":{"start":{"line":1021,"column":8},"end":{"line":1021,"column":25}},"141":{"start":{"line":1022,"column":8},"end":{"line":1023,"column":23}},"142":{"start":{"line":1025,"column":8},"end":{"line":1038,"column":9}},"143":{"start":{"line":1026,"column":12},"end":{"line":1030,"column":13}},"144":{"start":{"line":1027,"column":16},"end":{"line":1027,"column":33}},"145":{"start":{"line":1029,"column":16},"end":{"line":1029,"column":51}},"146":{"start":{"line":1031,"column":15},"end":{"line":1038,"column":9}},"147":{"start":{"line":1032,"column":12},"end":{"line":1032,"column":21}},"148":{"start":{"line":1033,"column":12},"end":{"line":1035,"column":15}},"149":{"start":{"line":1034,"column":16},"end":{"line":1034,"column":27}},"150":{"start":{"line":1037,"column":12},"end":{"line":1037,"column":47}},"151":{"start":{"line":1040,"column":8},"end":{"line":1040,"column":19}},"152":{"start":{"line":1045,"column":8},"end":{"line":1045,"column":24}},"153":{"start":{"line":1046,"column":8},"end":{"line":1051,"column":17}},"154":{"start":{"line":1053,"column":8},"end":{"line":1063,"column":9}},"155":{"start":{"line":1054,"column":12},"end":{"line":1054,"column":33}},"156":{"start":{"line":1055,"column":12},"end":{"line":1060,"column":13}},"157":{"start":{"line":1056,"column":16},"end":{"line":1056,"column":49}},"158":{"start":{"line":1057,"column":16},"end":{"line":1059,"column":17}},"159":{"start":{"line":1058,"column":20},"end":{"line":1058,"column":61}},"160":{"start":{"line":1062,"column":12},"end":{"line":1062,"column":19}},"161":{"start":{"line":1065,"column":8},"end":{"line":1065,"column":19}},"162":{"start":{"line":1069,"column":8},"end":{"line":1069,"column":39}},"163":{"start":{"line":1071,"column":8},"end":{"line":1073,"column":61}},"164":{"start":{"line":1075,"column":8},"end":{"line":1075,"column":20}},"165":{"start":{"line":1089,"column":8},"end":{"line":1089,"column":25}},"166":{"start":{"line":1090,"column":8},"end":{"line":1094,"column":9}},"167":{"start":{"line":1091,"column":12},"end":{"line":1091,"column":35}},"168":{"start":{"line":1093,"column":12},"end":{"line":1093,"column":30}},"169":{"start":{"line":1096,"column":7},"end":{"line":1096,"column":19}},"170":{"start":{"line":1108,"column":8},"end":{"line":1114,"column":9}},"171":{"start":{"line":1109,"column":12},"end":{"line":1113,"column":13}},"172":{"start":{"line":1110,"column":16},"end":{"line":1110,"column":40}},"173":{"start":{"line":1112,"column":16},"end":{"line":1112,"column":34}},"174":{"start":{"line":1116,"column":8},"end":{"line":1116,"column":20}},"175":{"start":{"line":1120,"column":0},"end":{"line":1164,"column":3}},"176":{"start":{"line":1133,"column":8},"end":{"line":1133,"column":52}},"177":{"start":{"line":1134,"column":8},"end":{"line":1134,"column":51}},"178":{"start":{"line":1148,"column":8},"end":{"line":1148,"column":65}},"179":{"start":{"line":1149,"column":8},"end":{"line":1149,"column":45}},"180":{"start":{"line":1161,"column":8},"end":{"line":1161,"column":52}},"181":{"start":{"line":1162,"column":8},"end":{"line":1162,"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":430,"type":"if","locations":[{"start":{"line":430,"column":12},"end":{"line":430,"column":12}},{"start":{"line":430,"column":12},"end":{"line":430,"column":12}}]},"10":{"line":435,"type":"if","locations":[{"start":{"line":435,"column":20},"end":{"line":435,"column":20}},{"start":{"line":435,"column":20},"end":{"line":435,"column":20}}]},"11":{"line":569,"type":"if","locations":[{"start":{"line":569,"column":8},"end":{"line":569,"column":8}},{"start":{"line":569,"column":8},"end":{"line":569,"column":8}}]},"12":{"line":575,"type":"binary-expr","locations":[{"start":{"line":575,"column":18},"end":{"line":575,"column":25}},{"start":{"line":575,"column":29},"end":{"line":575,"column":33}}]},"13":{"line":763,"type":"if","locations":[{"start":{"line":763,"column":8},"end":{"line":763,"column":8}},{"start":{"line":763,"column":8},"end":{"line":763,"column":8}}]},"14":{"line":842,"type":"if","locations":[{"start":{"line":842,"column":8},"end":{"line":842,"column":8}},{"start":{"line":842,"column":8},"end":{"line":842,"column":8}}]},"15":{"line":843,"type":"cond-expr","locations":[{"start":{"line":843,"column":38},"end":{"line":843,"column":39}},{"start":{"line":843,"column":42},"end":{"line":843,"column":43}}]},"16":{"line":846,"type":"if","locations":[{"start":{"line":846,"column":8},"end":{"line":846,"column":8}},{"start":{"line":846,"column":8},"end":{"line":846,"column":8}}]},"17":{"line":852,"type":"if","locations":[{"start":{"line":852,"column":8},"end":{"line":852,"column":8}},{"start":{"line":852,"column":8},"end":{"line":852,"column":8}}]},"18":{"line":934,"type":"if","locations":[{"start":{"line":934,"column":0},"end":{"line":934,"column":0}},{"start":{"line":934,"column":0},"end":{"line":934,"column":0}}]},"19":{"line":936,"type":"if","locations":[{"start":{"line":936,"column":8},"end":{"line":936,"column":8}},{"start":{"line":936,"column":8},"end":{"line":936,"column":8}}]},"20":{"line":937,"type":"if","locations":[{"start":{"line":937,"column":12},"end":{"line":937,"column":12}},{"start":{"line":937,"column":12},"end":{"line":937,"column":12}}]},"21":{"line":941,"type":"binary-expr","locations":[{"start":{"line":941,"column":18},"end":{"line":941,"column":45}},{"start":{"line":942,"column":16},"end":{"line":942,"column":53}}]},"22":{"line":961,"type":"if","locations":[{"start":{"line":961,"column":8},"end":{"line":961,"column":8}},{"start":{"line":961,"column":8},"end":{"line":961,"column":8}}]},"23":{"line":978,"type":"binary-expr","locations":[{"start":{"line":978,"column":15},"end":{"line":978,"column":30}},{"start":{"line":978,"column":34},"end":{"line":978,"column":49}}]},"24":{"line":984,"type":"if","locations":[{"start":{"line":984,"column":0},"end":{"line":984,"column":0}},{"start":{"line":984,"column":0},"end":{"line":984,"column":0}}]},"25":{"line":1003,"type":"if","locations":[{"start":{"line":1003,"column":8},"end":{"line":1003,"column":8}},{"start":{"line":1003,"column":8},"end":{"line":1003,"column":8}}]},"26":{"line":1025,"type":"if","locations":[{"start":{"line":1025,"column":8},"end":{"line":1025,"column":8}},{"start":{"line":1025,"column":8},"end":{"line":1025,"column":8}}]},"27":{"line":1026,"type":"if","locations":[{"start":{"line":1026,"column":12},"end":{"line":1026,"column":12}},{"start":{"line":1026,"column":12},"end":{"line":1026,"column":12}}]},"28":{"line":1031,"type":"if","locations":[{"start":{"line":1031,"column":15},"end":{"line":1031,"column":15}},{"start":{"line":1031,"column":15},"end":{"line":1031,"column":15}}]},"29":{"line":1031,"type":"binary-expr","locations":[{"start":{"line":1031,"column":19},"end":{"line":1031,"column":42}},{"start":{"line":1031,"column":46},"end":{"line":1031,"column":59}}]},"30":{"line":1045,"type":"binary-expr","locations":[{"start":{"line":1045,"column":14},"end":{"line":1045,"column":17}},{"start":{"line":1045,"column":21},"end":{"line":1045,"column":23}}]},"31":{"line":1055,"type":"if","locations":[{"start":{"line":1055,"column":12},"end":{"line":1055,"column":12}},{"start":{"line":1055,"column":12},"end":{"line":1055,"column":12}}]},"32":{"line":1057,"type":"if","locations":[{"start":{"line":1057,"column":16},"end":{"line":1057,"column":16}},{"start":{"line":1057,"column":16},"end":{"line":1057,"column":16}}]},"33":{"line":1073,"type":"binary-expr","locations":[{"start":{"line":1073,"column":19},"end":{"line":1073,"column":24}},{"start":{"line":1073,"column":28},"end":{"line":1073,"column":39}},{"start":{"line":1073,"column":43},"end":{"line":1073,"column":60}}]},"34":{"line":1090,"type":"if","locations":[{"start":{"line":1090,"column":8},"end":{"line":1090,"column":8}},{"start":{"line":1090,"column":8},"end":{"line":1090,"column":8}}]},"35":{"line":1108,"type":"if","locations":[{"start":{"line":1108,"column":8},"end":{"line":1108,"column":8}},{"start":{"line":1108,"column":8},"end":{"line":1108,"column":8}}]},"36":{"line":1109,"type":"if","locations":[{"start":{"line":1109,"column":12},"end":{"line":1109,"column":12}},{"start":{"line":1109,"column":12},"end":{"line":1109,"column":12}}]},"37":{"line":1133,"type":"cond-expr","locations":[{"start":{"line":1133,"column":40},"end":{"line":1133,"column":46}},{"start":{"line":1133,"column":49},"end":{"line":1133,"column":51}}]},"38":{"line":1148,"type":"cond-expr","locations":[{"start":{"line":1148,"column":44},"end":{"line":1148,"column":55}},{"start":{"line":1148,"column":58},"end":{"line":1148,"column":64}}]},"39":{"line":1161,"type":"cond-expr","locations":[{"start":{"line":1161,"column":40},"end":{"line":1161,"column":46}},{"start":{"line":1161,"column":49},"end":{"line":1161,"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 <a href=\"../classes/Escape.html#method_html\">`Y.Escape.html()`</a>"," * 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 <a href=\"../classes/Escape.html#method_html\">`Y.Escape.html()`</a>"," * 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 <a href=\"../classes/Escape.html#method_html\">`Y.Escape.html()`</a>"," * to escape html content."," * @param {Int | Node | HTMLElement | String} where The position to insert at."," * Possible \"where\" arguments"," * <dl>"," * <dt>Y.Node</dt>"," * <dd>The Node to insert before</dd>"," * <dt>HTMLElement</dt>"," * <dd>The element to insert before</dd>"," * <dt>Int</dt>"," * <dd>The index of the child element to insert before</dd>"," * <dt>\"replace\"</dt>"," * <dd>Replaces the existing HTML</dd>"," * <dt>\"before\"</dt>"," * <dd>Inserts before the existing HTML</dd>"," * <dt>\"before\"</dt>"," * <dd>Inserts content before the node</dd>"," * <dt>\"after\"</dt>"," * <dd>Inserts content after the node</dd>"," * </dl>"," * @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 <a href=\"../classes/Escape.html#method_html\">`Y.Escape.html()`</a>"," * 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 <a href=\"../classes/Escape.html#method_html\">`Y.Escape.html()`</a>"," * 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 <a href=\"../classes/Escape.html#method_html\">`Y.Escape.html()`</a>"," * 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 <a href=\"../classes/Escape.html#method_html\">`Y.Escape.html()`</a>"," * 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;"," },",""," /**"," * Replaces the node's current content with the content."," * Note that this passes to innerHTML and is not escaped."," * Use <a href=\"../classes/Escape.html#method_html\">`Y.Escape.html()`</a>"," * to escape html content or `set('text')` to add as text."," * @method setContent"," * @deprecated Use setHTML"," * @param {String | Node | HTMLElement | NodeList | HTMLCollection} content The content to insert"," * @chainable"," */"," setContent: function(content) {"," this._insert(content, 'replace');"," return this;"," },",""," /**"," * Returns the node's current content (e.g. innerHTML)"," * @method getContent"," * @deprecated Use getHTML"," * @return {String} The current content"," */"," getContent: function(content) {"," return this.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, or `set('text')` to add as text."," * @method setHTML"," * @param {String | HTML | 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',",""," /**"," * Called on each Node instance"," * Note that this passes to innerHTML and is not escaped."," * Use `Y.Escape.html()` to escape HTML, or `set('text')` to add as text."," * @for NodeList"," * @method setContent"," * @deprecated Use setHTML"," */"," 'setContent',",""," /**"," * Called on each Node instance"," * @for NodeList"," * @method getContent"," * @deprecated Use getHTML"," */"," 'getContent',",""," /**"," * Called on each Node instance"," * Note that this passes to innerHTML and is not escaped."," * Use `Y.Escape.html()` to escape HTML, 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,"," 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,"," 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, <em>not the `Node` that received the event</em>. 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"," });"," }","});","/**"," * @module node"," * @submodule node-base"," */","","var Y_Node = Y.Node;","","Y.mix(Y_Node.prototype, {"," /**"," * Makes the node visible."," * If the \"transition\" module is loaded, show optionally"," * animates the showing of the node using either the default"," * transition effect ('fadeIn'), or the given named effect."," * @method show"," * @for Node"," * @param {String} name A named Transition effect to use as the show effect."," * @param {Object} config Options to use with the transition."," * @param {Function} callback An optional function to run after the transition completes."," * @chainable"," */"," show: function(callback) {"," callback = arguments[arguments.length - 1];"," this.toggleView(true, callback);"," return this;"," },",""," /**"," * The implementation for showing nodes."," * Default is to remove the hidden attribute and reset the CSS style.display property."," * @method _show"," * @protected"," * @chainable"," */"," _show: function() {"," this.removeAttribute('hidden');",""," // For back-compat we need to leave this in for browsers that"," // do not visually hide a node via the hidden attribute"," // and for users that check visibility based on style display."," this.setStyle('display', '');",""," },",""," _isHidden: function() {"," return Y.DOM.getAttribute(this._node, 'hidden') === 'true';"," },",""," /**"," * Displays or hides the node."," * If the \"transition\" module is loaded, toggleView optionally"," * animates the toggling of the node using given named effect."," * @method toggleView"," * @for Node"," * @param {String} [name] An optional string value to use as transition effect."," * @param {Boolean} [on] An optional boolean value to force the node to be shown or hidden"," * @param {Function} [callback] An optional function to run after the transition completes."," * @chainable"," */"," toggleView: function(on, callback) {"," this._toggleView.apply(this, arguments);"," return this;"," },",""," _toggleView: function(on, callback) {"," callback = arguments[arguments.length - 1];",""," // base on current state if not forcing"," if (typeof on != 'boolean') {"," on = (this._isHidden()) ? 1 : 0;"," }",""," if (on) {"," this._show();"," } else {"," this._hide();"," }",""," if (typeof callback == 'function') {"," callback.call(this);"," }",""," return this;"," },",""," /**"," * Hides the node."," * If the \"transition\" module is loaded, hide optionally"," * animates the hiding of the node using either the default"," * transition effect ('fadeOut'), or the given named effect."," * @method hide"," * @param {String} name A named Transition effect to use as the show effect."," * @param {Object} config Options to use with the transition."," * @param {Function} callback An optional function to run after the transition completes."," * @chainable"," */"," hide: function(callback) {"," callback = arguments[arguments.length - 1];"," this.toggleView(false, callback);"," return this;"," },",""," /**"," * The implementation for hiding nodes."," * Default is to set the hidden attribute to true and set the CSS style.display to 'none'."," * @method _hide"," * @protected"," * @chainable"," */"," _hide: function() {"," this.setAttribute('hidden', true);",""," // For back-compat we need to leave this in for browsers that"," // do not visually hide a node via the hidden attribute"," // and for users that check visibility based on style display."," this.setStyle('display', 'none');"," }","});","","Y.NodeList.importMethod(Y.Node.prototype, ["," /**"," * Makes each node visible."," * If the \"transition\" module is loaded, show optionally"," * animates the showing of the node using either the default"," * transition effect ('fadeIn'), or the given named effect."," * @method show"," * @param {String} name A named Transition effect to use as the show effect."," * @param {Object} config Options to use with the transition."," * @param {Function} callback An optional function to run after the transition completes."," * @for NodeList"," * @chainable"," */"," 'show',",""," /**"," * Hides each node."," * If the \"transition\" module is loaded, hide optionally"," * animates the hiding of the node using either the default"," * transition effect ('fadeOut'), or the given named effect."," * @method hide"," * @param {String} name A named Transition effect to use as the show effect."," * @param {Object} config Options to use with the transition."," * @param {Function} callback An optional function to run after the transition completes."," * @chainable"," */"," 'hide',",""," /**"," * Displays or hides each node."," * If the \"transition\" module is loaded, toggleView optionally"," * animates the toggling of the nodes using given named effect."," * @method toggleView"," * @param {String} [name] An optional string value to use as transition effect."," * @param {Boolean} [on] An optional boolean value to force the nodes to be shown or hidden"," * @param {Function} [callback] An optional function to run after the transition completes."," * @chainable"," */"," 'toggleView'","]);","","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.setStyle('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]);"," }","});","","","}, '3.10.3', {\"requires\": [\"event-base\", \"node-core\", \"dom-base\"]});","","}());"]}; |