src/cm/media/js/lib/yui/yui3-3.15.0/build/widget-modality/widget-modality-coverage.js
author Yves-Marie Haussonne <ymh.work+github@gmail.com>
Fri, 09 May 2014 18:35:26 +0200
changeset 656 a84519031134
parent 602 e16a97fb364a
permissions -rw-r--r--
add link to "privacy policy" in the header test
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
602
e16a97fb364a Use YUI 3.15
gibus
parents:
diff changeset
     1
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
e16a97fb364a Use YUI 3.15
gibus
parents:
diff changeset
     2
if (!__coverage__['build/widget-modality/widget-modality.js']) {
e16a97fb364a Use YUI 3.15
gibus
parents:
diff changeset
     3
   __coverage__['build/widget-modality/widget-modality.js'] = {"path":"build/widget-modality/widget-modality.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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0,0,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,0],"24":[0,0],"25":[0,0,0],"26":[0,0],"27":[0,0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0,0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":46}}},"2":{"name":"(anonymous_2)","line":26,"loc":{"start":{"line":26,"column":24},"end":{"line":26,"column":34}}},"3":{"name":"WidgetModal","line":58,"loc":{"start":{"line":58,"column":4},"end":{"line":58,"column":33}}},"4":{"name":"(anonymous_4)","line":111,"loc":{"start":{"line":111,"column":25},"end":{"line":111,"column":36}}},"5":{"name":"(anonymous_5)","line":143,"loc":{"start":{"line":143,"column":28},"end":{"line":143,"column":39}}},"6":{"name":"(anonymous_6)","line":186,"loc":{"start":{"line":186,"column":21},"end":{"line":186,"column":33}}},"7":{"name":"(anonymous_7)","line":192,"loc":{"start":{"line":192,"column":20},"end":{"line":192,"column":32}}},"8":{"name":"(anonymous_8)","line":211,"loc":{"start":{"line":211,"column":25},"end":{"line":211,"column":37}}},"9":{"name":"(anonymous_9)","line":236,"loc":{"start":{"line":236,"column":23},"end":{"line":236,"column":35}}},"10":{"name":"(anonymous_10)","line":264,"loc":{"start":{"line":264,"column":23},"end":{"line":264,"column":35}}},"11":{"name":"(anonymous_11)","line":278,"loc":{"start":{"line":278,"column":17},"end":{"line":278,"column":30}}},"12":{"name":"(anonymous_12)","line":292,"loc":{"start":{"line":292,"column":16},"end":{"line":292,"column":28}}},"13":{"name":"(anonymous_13)","line":304,"loc":{"start":{"line":304,"column":23},"end":{"line":304,"column":35}}},"14":{"name":"(anonymous_14)","line":316,"loc":{"start":{"line":316,"column":33},"end":{"line":316,"column":52}}},"15":{"name":"(anonymous_15)","line":324,"loc":{"start":{"line":324,"column":36},"end":{"line":324,"column":51}}},"16":{"name":"(anonymous_16)","line":385,"loc":{"start":{"line":385,"column":32},"end":{"line":385,"column":50}}},"17":{"name":"(anonymous_17)","line":401,"loc":{"start":{"line":401,"column":32},"end":{"line":401,"column":44}}},"18":{"name":"(anonymous_18)","line":444,"loc":{"start":{"line":444,"column":64},"end":{"line":444,"column":75}}},"19":{"name":"(anonymous_19)","line":458,"loc":{"start":{"line":458,"column":32},"end":{"line":458,"column":44}}},"20":{"name":"(anonymous_20)","line":459,"loc":{"start":{"line":459,"column":41},"end":{"line":459,"column":52}}},"21":{"name":"(anonymous_21)","line":472,"loc":{"start":{"line":472,"column":39},"end":{"line":472,"column":52}}},"22":{"name":"(anonymous_22)","line":484,"loc":{"start":{"line":484,"column":38},"end":{"line":484,"column":51}}},"23":{"name":"(anonymous_23)","line":496,"loc":{"start":{"line":496,"column":18},"end":{"line":496,"column":29}}},"24":{"name":"(anonymous_24)","line":509,"loc":{"start":{"line":509,"column":25},"end":{"line":509,"column":44}}},"25":{"name":"(anonymous_25)","line":544,"loc":{"start":{"line":544,"column":21},"end":{"line":544,"column":34}}},"26":{"name":"(anonymous_26)","line":566,"loc":{"start":{"line":566,"column":30},"end":{"line":566,"column":42}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":579,"column":92}},"2":{"start":{"line":9,"column":0},"end":{"line":49,"column":9}},"3":{"start":{"line":30,"column":8},"end":{"line":32,"column":21}},"4":{"start":{"line":34,"column":8},"end":{"line":46,"column":9}},"5":{"start":{"line":35,"column":12},"end":{"line":35,"column":42}},"6":{"start":{"line":36,"column":12},"end":{"line":45,"column":13}},"7":{"start":{"line":37,"column":16},"end":{"line":37,"column":44}},"8":{"start":{"line":38,"column":16},"end":{"line":38,"column":38}},"9":{"start":{"line":39,"column":16},"end":{"line":39,"column":32}},"10":{"start":{"line":40,"column":16},"end":{"line":44,"column":17}},"11":{"start":{"line":41,"column":20},"end":{"line":41,"column":41}},"12":{"start":{"line":42,"column":20},"end":{"line":42,"column":56}},"13":{"start":{"line":43,"column":20},"end":{"line":43,"column":41}},"14":{"start":{"line":48,"column":8},"end":{"line":48,"column":27}},"15":{"start":{"line":58,"column":4},"end":{"line":58,"column":35}},"16":{"start":{"line":60,"column":4},"end":{"line":65,"column":10}},"17":{"start":{"line":75,"column":4},"end":{"line":127,"column":6}},"18":{"start":{"line":112,"column":20},"end":{"line":121,"column":22}},"19":{"start":{"line":130,"column":4},"end":{"line":130,"column":40}},"20":{"start":{"line":143,"column":4},"end":{"line":175,"column":6}},"21":{"start":{"line":145,"column":8},"end":{"line":146,"column":32}},"22":{"start":{"line":148,"column":8},"end":{"line":150,"column":9}},"23":{"start":{"line":149,"column":12},"end":{"line":149,"column":24}},"24":{"start":{"line":152,"column":8},"end":{"line":152,"column":73}},"25":{"start":{"line":154,"column":8},"end":{"line":172,"column":9}},"26":{"start":{"line":155,"column":12},"end":{"line":162,"column":15}},"27":{"start":{"line":164,"column":12},"end":{"line":171,"column":15}},"28":{"start":{"line":174,"column":8},"end":{"line":174,"column":20}},"29":{"start":{"line":181,"column":4},"end":{"line":181,"column":27}},"30":{"start":{"line":184,"column":4},"end":{"line":573,"column":6}},"31":{"start":{"line":187,"column":12},"end":{"line":187,"column":58}},"32":{"start":{"line":188,"column":12},"end":{"line":188,"column":54}},"33":{"start":{"line":189,"column":12},"end":{"line":189,"column":54}},"34":{"start":{"line":194,"column":12},"end":{"line":194,"column":47}},"35":{"start":{"line":213,"column":12},"end":{"line":213,"column":44}},"36":{"start":{"line":221,"column":12},"end":{"line":221,"column":39}},"37":{"start":{"line":222,"column":12},"end":{"line":222,"column":45}},"38":{"start":{"line":238,"column":12},"end":{"line":238,"column":74}},"39":{"start":{"line":239,"column":12},"end":{"line":239,"column":73}},"40":{"start":{"line":240,"column":12},"end":{"line":240,"column":66}},"41":{"start":{"line":247,"column":12},"end":{"line":252,"column":13}},"42":{"start":{"line":251,"column":16},"end":{"line":251,"column":66}},"43":{"start":{"line":268,"column":12},"end":{"line":268,"column":59}},"44":{"start":{"line":280,"column":12},"end":{"line":281,"column":39}},"45":{"start":{"line":283,"column":12},"end":{"line":283,"column":55}},"46":{"start":{"line":284,"column":12},"end":{"line":284,"column":25}},"47":{"start":{"line":294,"column":12},"end":{"line":294,"column":24}},"48":{"start":{"line":306,"column":12},"end":{"line":306,"column":43}},"49":{"start":{"line":317,"column":12},"end":{"line":320,"column":32}},"50":{"start":{"line":322,"column":12},"end":{"line":375,"column":13}},"51":{"start":{"line":324,"column":16},"end":{"line":327,"column":19}},"52":{"start":{"line":325,"column":20},"end":{"line":325,"column":50}},"53":{"start":{"line":326,"column":20},"end":{"line":326,"column":34}},"54":{"start":{"line":330,"column":16},"end":{"line":330,"column":36}},"55":{"start":{"line":332,"column":16},"end":{"line":332,"column":43}},"56":{"start":{"line":333,"column":16},"end":{"line":333,"column":62}},"57":{"start":{"line":335,"column":16},"end":{"line":341,"column":17}},"58":{"start":{"line":336,"column":20},"end":{"line":336,"column":36}},"59":{"start":{"line":337,"column":20},"end":{"line":337,"column":62}},"60":{"start":{"line":338,"column":20},"end":{"line":340,"column":21}},"61":{"start":{"line":339,"column":24},"end":{"line":339,"column":38}},"62":{"start":{"line":346,"column":16},"end":{"line":346,"column":53}},"63":{"start":{"line":347,"column":16},"end":{"line":350,"column":17}},"64":{"start":{"line":349,"column":20},"end":{"line":349,"column":43}},"65":{"start":{"line":352,"column":16},"end":{"line":352,"column":45}},"66":{"start":{"line":353,"column":16},"end":{"line":353,"column":29}},"67":{"start":{"line":355,"column":16},"end":{"line":373,"column":17}},"68":{"start":{"line":356,"column":20},"end":{"line":356,"column":40}},"69":{"start":{"line":357,"column":20},"end":{"line":357,"column":51}},"70":{"start":{"line":359,"column":20},"end":{"line":359,"column":74}},"71":{"start":{"line":361,"column":20},"end":{"line":365,"column":21}},"72":{"start":{"line":363,"column":24},"end":{"line":363,"column":70}},"73":{"start":{"line":364,"column":24},"end":{"line":364,"column":42}},"74":{"start":{"line":369,"column":20},"end":{"line":371,"column":21}},"75":{"start":{"line":370,"column":24},"end":{"line":370,"column":40}},"76":{"start":{"line":387,"column":12},"end":{"line":389,"column":13}},"77":{"start":{"line":388,"column":16},"end":{"line":388,"column":68}},"78":{"start":{"line":403,"column":12},"end":{"line":407,"column":13}},"79":{"start":{"line":406,"column":16},"end":{"line":406,"column":23}},"80":{"start":{"line":409,"column":12},"end":{"line":414,"column":26}},"81":{"start":{"line":416,"column":12},"end":{"line":441,"column":13}},"82":{"start":{"line":418,"column":16},"end":{"line":418,"column":23}},"83":{"start":{"line":419,"column":16},"end":{"line":419,"column":41}},"84":{"start":{"line":420,"column":16},"end":{"line":420,"column":44}},"85":{"start":{"line":421,"column":16},"end":{"line":421,"column":47}},"86":{"start":{"line":424,"column":16},"end":{"line":439,"column":17}},"87":{"start":{"line":425,"column":20},"end":{"line":425,"column":55}},"88":{"start":{"line":429,"column":21},"end":{"line":439,"column":17}},"89":{"start":{"line":430,"column":20},"end":{"line":430,"column":59}},"90":{"start":{"line":434,"column":21},"end":{"line":439,"column":17}},"91":{"start":{"line":435,"column":20},"end":{"line":435,"column":70}},"92":{"start":{"line":443,"column":12},"end":{"line":447,"column":13}},"93":{"start":{"line":444,"column":16},"end":{"line":446,"column":27}},"94":{"start":{"line":445,"column":20},"end":{"line":445,"column":73}},"95":{"start":{"line":449,"column":12},"end":{"line":449,"column":45}},"96":{"start":{"line":459,"column":12},"end":{"line":461,"column":15}},"97":{"start":{"line":460,"column":16},"end":{"line":460,"column":27}},"98":{"start":{"line":462,"column":12},"end":{"line":462,"column":40}},"99":{"start":{"line":474,"column":12},"end":{"line":474,"column":50}},"100":{"start":{"line":486,"column":12},"end":{"line":486,"column":49}},"101":{"start":{"line":497,"column":12},"end":{"line":498,"column":49}},"102":{"start":{"line":499,"column":12},"end":{"line":499,"column":26}},"103":{"start":{"line":511,"column":12},"end":{"line":514,"column":29}},"104":{"start":{"line":517,"column":12},"end":{"line":533,"column":13}},"105":{"start":{"line":519,"column":16},"end":{"line":519,"column":34}},"106":{"start":{"line":520,"column":16},"end":{"line":520,"column":36}},"107":{"start":{"line":524,"column":17},"end":{"line":533,"column":13}},"108":{"start":{"line":527,"column":16},"end":{"line":527,"column":34}},"109":{"start":{"line":528,"column":16},"end":{"line":528,"column":36}},"110":{"start":{"line":529,"column":16},"end":{"line":529,"column":48}},"111":{"start":{"line":530,"column":16},"end":{"line":530,"column":65}},"112":{"start":{"line":531,"column":16},"end":{"line":531,"column":70}},"113":{"start":{"line":532,"column":16},"end":{"line":532,"column":36}},"114":{"start":{"line":545,"column":12},"end":{"line":550,"column":47}},"115":{"start":{"line":552,"column":12},"end":{"line":557,"column":15}},"116":{"start":{"line":567,"column":12},"end":{"line":567,"column":41}},"117":{"start":{"line":569,"column":12},"end":{"line":571,"column":13}},"118":{"start":{"line":570,"column":16},"end":{"line":570,"column":45}},"119":{"start":{"line":575,"column":4},"end":{"line":575,"column":35}}},"branchMap":{"1":{"line":34,"type":"if","locations":[{"start":{"line":34,"column":8},"end":{"line":34,"column":8}},{"start":{"line":34,"column":8},"end":{"line":34,"column":8}}]},"2":{"line":36,"type":"if","locations":[{"start":{"line":36,"column":12},"end":{"line":36,"column":12}},{"start":{"line":36,"column":12},"end":{"line":36,"column":12}}]},"3":{"line":36,"type":"binary-expr","locations":[{"start":{"line":36,"column":16},"end":{"line":36,"column":18}},{"start":{"line":36,"column":22},"end":{"line":36,"column":30}}]},"4":{"line":40,"type":"if","locations":[{"start":{"line":40,"column":16},"end":{"line":40,"column":16}},{"start":{"line":40,"column":16},"end":{"line":40,"column":16}}]},"5":{"line":40,"type":"binary-expr","locations":[{"start":{"line":40,"column":20},"end":{"line":40,"column":24}},{"start":{"line":40,"column":28},"end":{"line":40,"column":44}},{"start":{"line":40,"column":48},"end":{"line":40,"column":64}}]},"6":{"line":148,"type":"if","locations":[{"start":{"line":148,"column":8},"end":{"line":148,"column":8}},{"start":{"line":148,"column":8},"end":{"line":148,"column":8}}]},"7":{"line":154,"type":"if","locations":[{"start":{"line":154,"column":8},"end":{"line":154,"column":8}},{"start":{"line":154,"column":8},"end":{"line":154,"column":8}}]},"8":{"line":247,"type":"if","locations":[{"start":{"line":247,"column":12},"end":{"line":247,"column":12}},{"start":{"line":247,"column":12},"end":{"line":247,"column":12}}]},"9":{"line":247,"type":"binary-expr","locations":[{"start":{"line":247,"column":16},"end":{"line":247,"column":33}},{"start":{"line":248,"column":21},"end":{"line":248,"column":29}},{"start":{"line":248,"column":33},"end":{"line":248,"column":45}},{"start":{"line":249,"column":21},"end":{"line":249,"column":33}},{"start":{"line":249,"column":37},"end":{"line":249,"column":53}}]},"10":{"line":283,"type":"cond-expr","locations":[{"start":{"line":283,"column":44},"end":{"line":283,"column":49}},{"start":{"line":283,"column":52},"end":{"line":283,"column":53}}]},"11":{"line":322,"type":"if","locations":[{"start":{"line":322,"column":12},"end":{"line":322,"column":12}},{"start":{"line":322,"column":12},"end":{"line":322,"column":12}}]},"12":{"line":335,"type":"if","locations":[{"start":{"line":335,"column":16},"end":{"line":335,"column":16}},{"start":{"line":335,"column":16},"end":{"line":335,"column":16}}]},"13":{"line":338,"type":"if","locations":[{"start":{"line":338,"column":20},"end":{"line":338,"column":20}},{"start":{"line":338,"column":20},"end":{"line":338,"column":20}}]},"14":{"line":347,"type":"if","locations":[{"start":{"line":347,"column":16},"end":{"line":347,"column":16}},{"start":{"line":347,"column":16},"end":{"line":347,"column":16}}]},"15":{"line":355,"type":"if","locations":[{"start":{"line":355,"column":16},"end":{"line":355,"column":16}},{"start":{"line":355,"column":16},"end":{"line":355,"column":16}}]},"16":{"line":361,"type":"if","locations":[{"start":{"line":361,"column":20},"end":{"line":361,"column":20}},{"start":{"line":361,"column":20},"end":{"line":361,"column":20}}]},"17":{"line":369,"type":"if","locations":[{"start":{"line":369,"column":20},"end":{"line":369,"column":20}},{"start":{"line":369,"column":20},"end":{"line":369,"column":20}}]},"18":{"line":387,"type":"if","locations":[{"start":{"line":387,"column":12},"end":{"line":387,"column":12}},{"start":{"line":387,"column":12},"end":{"line":387,"column":12}}]},"19":{"line":388,"type":"binary-expr","locations":[{"start":{"line":388,"column":55},"end":{"line":388,"column":61}},{"start":{"line":388,"column":65},"end":{"line":388,"column":66}}]},"20":{"line":403,"type":"if","locations":[{"start":{"line":403,"column":12},"end":{"line":403,"column":12}},{"start":{"line":403,"column":12},"end":{"line":403,"column":12}}]},"21":{"line":403,"type":"binary-expr","locations":[{"start":{"line":403,"column":16},"end":{"line":403,"column":36}},{"start":{"line":403,"column":40},"end":{"line":403,"column":69}}]},"22":{"line":424,"type":"if","locations":[{"start":{"line":424,"column":16},"end":{"line":424,"column":16}},{"start":{"line":424,"column":16},"end":{"line":424,"column":16}}]},"23":{"line":424,"type":"binary-expr","locations":[{"start":{"line":424,"column":20},"end":{"line":424,"column":27}},{"start":{"line":424,"column":31},"end":{"line":424,"column":41}},{"start":{"line":424,"column":45},"end":{"line":424,"column":49}}]},"24":{"line":429,"type":"if","locations":[{"start":{"line":429,"column":21},"end":{"line":429,"column":21}},{"start":{"line":429,"column":21},"end":{"line":429,"column":21}}]},"25":{"line":429,"type":"binary-expr","locations":[{"start":{"line":429,"column":25},"end":{"line":429,"column":31}},{"start":{"line":429,"column":35},"end":{"line":429,"column":45}},{"start":{"line":429,"column":49},"end":{"line":429,"column":53}}]},"26":{"line":434,"type":"if","locations":[{"start":{"line":434,"column":21},"end":{"line":434,"column":21}},{"start":{"line":434,"column":21},"end":{"line":434,"column":21}}]},"27":{"line":434,"type":"binary-expr","locations":[{"start":{"line":434,"column":25},"end":{"line":434,"column":31}},{"start":{"line":434,"column":35},"end":{"line":434,"column":44}},{"start":{"line":434,"column":48},"end":{"line":434,"column":52}}]},"28":{"line":443,"type":"if","locations":[{"start":{"line":443,"column":12},"end":{"line":443,"column":12}},{"start":{"line":443,"column":12},"end":{"line":443,"column":12}}]},"29":{"line":498,"type":"cond-expr","locations":[{"start":{"line":498,"column":36},"end":{"line":498,"column":40}},{"start":{"line":498,"column":43},"end":{"line":498,"column":48}}]},"30":{"line":517,"type":"if","locations":[{"start":{"line":517,"column":12},"end":{"line":517,"column":12}},{"start":{"line":517,"column":12},"end":{"line":517,"column":12}}]},"31":{"line":517,"type":"binary-expr","locations":[{"start":{"line":517,"column":16},"end":{"line":517,"column":28}},{"start":{"line":517,"column":32},"end":{"line":517,"column":42}}]},"32":{"line":524,"type":"if","locations":[{"start":{"line":524,"column":17},"end":{"line":524,"column":17}},{"start":{"line":524,"column":17},"end":{"line":524,"column":17}}]},"33":{"line":524,"type":"binary-expr","locations":[{"start":{"line":524,"column":22},"end":{"line":524,"column":35}},{"start":{"line":524,"column":39},"end":{"line":524,"column":48}},{"start":{"line":524,"column":54},"end":{"line":524,"column":66}},{"start":{"line":524,"column":70},"end":{"line":524,"column":79}}]},"34":{"line":530,"type":"binary-expr","locations":[{"start":{"line":530,"column":27},"end":{"line":530,"column":47}},{"start":{"line":530,"column":51},"end":{"line":530,"column":64}}]},"35":{"line":548,"type":"binary-expr","locations":[{"start":{"line":548,"column":26},"end":{"line":548,"column":45}},{"start":{"line":548,"column":49},"end":{"line":548,"column":66}}]},"36":{"line":549,"type":"binary-expr","locations":[{"start":{"line":549,"column":26},"end":{"line":549,"column":46}},{"start":{"line":549,"column":50},"end":{"line":549,"column":68}}]},"37":{"line":569,"type":"if","locations":[{"start":{"line":569,"column":12},"end":{"line":569,"column":12}},{"start":{"line":569,"column":12},"end":{"line":569,"column":12}}]}},"code":["(function () { YUI.add('widget-modality', function (Y, NAME) {","","/**"," * Provides modality support for Widgets, though an extension"," *"," * @module widget-modality"," */","","var WIDGET       = 'widget',","    RENDER_UI    = 'renderUI',","    BIND_UI      = 'bindUI',","    SYNC_UI      = 'syncUI',","    BOUNDING_BOX = 'boundingBox',","    CONTENT_BOX  = 'contentBox',","    RENDERED     = 'rendered',","    VISIBLE      = 'visible',","    Z_INDEX      = 'zIndex',","    CHANGE       = 'Change',","    isBoolean    = Y.Lang.isBoolean,","    getCN        = Y.ClassNameManager.getClassName,","    MaskShow     = \"maskShow\",","    MaskHide     = \"maskHide\",","    ClickOutside = \"clickoutside\",","    FocusOutside = \"focusoutside\",","","    supportsPosFixed = (function(){","","        /*! IS_POSITION_FIXED_SUPPORTED - Juriy Zaytsev (kangax) - http://yura.thinkweb2.com/cft/ */","","        var doc         = Y.config.doc,","            isSupported = null,","            el, root;","","        if (doc.createElement) {","            el = doc.createElement('div');","            if (el && el.style) {","                el.style.position = 'fixed';","                el.style.top = '10px';","                root = doc.body;","                if (root && root.appendChild && root.removeChild) {","                    root.appendChild(el);","                    isSupported = (el.offsetTop === 10);","                    root.removeChild(el);","                }","            }","        }","","        return isSupported;","    }());","","    /**","     * Widget extension, which can be used to add modality support to the base Widget class,","     * through the Base.create method.","     *","     * @class WidgetModality","     * @param {Object} config User configuration object","     */","    function WidgetModal(config) {}","","    var MODAL           = 'modal',","        MASK            = 'mask',","        MODAL_CLASSES   = {","            modal   : getCN(WIDGET, MODAL),","            mask    : getCN(WIDGET, MASK)","        };","","    /**","    * Static property used to define the default attribute","    * configuration introduced by WidgetModality.","    *","    * @property ATTRS","    * @static","    * @type Object","    */","    WidgetModal.ATTRS = {","            /**","             * @attribute maskNode","             * @type Y.Node","             *","             * @description Returns a Y.Node instance of the node being used as the mask.","             */","            maskNode : {","                getter      : '_getMaskNode',","                readOnly    : true","            },","","","            /**","             * @attribute modal","             * @type boolean","             *","             * @description Whether the widget should be modal or not.","             */","            modal: {","                value:false,","                validator: isBoolean","            },","","            /**","             * @attribute focusOn","             * @type array","             *","             * @description An array of objects corresponding to the nodes and events that will trigger a re-focus back on the widget.","             * The implementer can supply an array of objects, with each object having the following properties:","             * <p>eventName: (string, required): The eventName to listen to.</p>","             * <p>node: (Y.Node, optional): The Y.Node that will fire the event (defaults to the boundingBox of the widget)</p>","             * <p>By default, this attribute consists of two objects which will cause the widget to re-focus if anything","             * outside the widget is clicked on or focussed upon.</p>","             */","            focusOn: {","                valueFn: function() {","                    return [","                        {","                            // node: this.get(BOUNDING_BOX),","                            eventName: ClickOutside","                        },","                        {","                            //node: this.get(BOUNDING_BOX),","                            eventName: FocusOutside","                        }","                    ];","                },","","                validator: Y.Lang.isArray","            }","","    };","","","    WidgetModal.CLASSES = MODAL_CLASSES;","","","    /**","     * Returns the mask if it exists on the page - otherwise creates a mask. There's only","     * one mask on a page at a given time.","     * <p>","     * This method in invoked internally by the getter of the maskNode ATTR.","     * </p>","     * @method _GET_MASK","     * @protected","     * @static","     */","    WidgetModal._GET_MASK = function() {","","        var mask = Y.one('.' + MODAL_CLASSES.mask),","            win  = Y.one('win');","","        if (mask) {","            return mask;","        }","","        mask = Y.Node.create('<div></div>').addClass(MODAL_CLASSES.mask);","","        if (supportsPosFixed) {","            mask.setStyles({","                position: 'fixed',","                width   : '100%',","                height  : '100%',","                top     : '0',","                left    : '0',","                display : 'block'","            });","        } else {","            mask.setStyles({","                position: 'absolute',","                width   : win.get('winWidth') +'px',","                height  : win.get('winHeight') + 'px',","                top     : '0',","                left    : '0',","                display : 'block'","            });","        }","","        return mask;","    };","","    /**","     * A stack of Y.Widget objects representing the current hierarchy of modal widgets presently displayed on the screen","     * @property STACK","     */","    WidgetModal.STACK = [];","","","    WidgetModal.prototype = {","","        initializer: function () {","            Y.after(this._renderUIModal, this, RENDER_UI);","            Y.after(this._syncUIModal, this, SYNC_UI);","            Y.after(this._bindUIModal, this, BIND_UI);","        },","","        destructor: function () {","            // Hack to remove this thing from the STACK.","            this._uiSetHostVisibleModal(false);","        },","","        // *** Instance Members *** //","","        _uiHandlesModal: null,","","","        /**","         * Adds modal class to the bounding box of the widget","         * <p>","         * This method in invoked after renderUI is invoked for the Widget class","         * using YUI's aop infrastructure.","         * </p>","         * @method _renderUIModal","         * @protected","         */","        _renderUIModal : function () {","","            var bb = this.get(BOUNDING_BOX);","                //cb = this.get(CONTENT_BOX);","","            //this makes the content box content appear over the mask","            // cb.setStyles({","            //     position: \"\"","            // });","","            this._repositionMask(this);","            bb.addClass(MODAL_CLASSES.modal);","","        },","","","        /**","         * Hooks up methods to be executed when the widget's visibility or z-index changes","         * <p>","         * This method in invoked after bindUI is invoked for the Widget class","         * using YUI's aop infrastructure.","         * </p>","         * @method _bindUIModal","         * @protected","         */","        _bindUIModal : function () {","","            this.after(VISIBLE+CHANGE, this._afterHostVisibleChangeModal);","            this.after(Z_INDEX+CHANGE, this._afterHostZIndexChangeModal);","            this.after(\"focusOnChange\", this._afterFocusOnChange);","","            // Re-align the mask in the viewport if `position: fixed;` is not","            // supported. iOS < 5 and Android < 3 don't actually support it even","            // though they both pass the feature test; the UA sniff is here to","            // account for that. Ideally this should be replaced with a better","            // feature test.","            if (!supportsPosFixed ||","                    (Y.UA.ios && Y.UA.ios < 5) ||","                    (Y.UA.android && Y.UA.android < 3)) {","","                Y.one('win').on('scroll', this._resyncMask, this);","            }","        },","","        /**","         * Syncs the mask with the widget's current state, namely the visibility and z-index of the widget","         * <p>","         * This method in invoked after syncUI is invoked for the Widget class","         * using YUI's aop infrastructure.","         * </p>","         * @method _syncUIModal","         * @protected","         */","        _syncUIModal : function () {","","            //var host = this.get(HOST);","","            this._uiSetHostVisibleModal(this.get(VISIBLE));","","        },","","        /**","         * Provides mouse and tab focus to the widget's bounding box.","         *","         * @method _focus","         * @protected","         */","        _focus : function (e) {","","            var bb = this.get(BOUNDING_BOX),","            oldTI = bb.get('tabIndex');","","            bb.set('tabIndex', oldTI >= 0 ? oldTI : 0);","            this.focus();","        },","        /**","         * Blurs the widget.","         *","         * @method _blur","         * @protected","         */","        _blur : function () {","","            this.blur();","        },","","        /**","         * Returns the Y.Node instance of the maskNode","         *","         * @method _getMaskNode","         * @protected","         * @return {Node} The Y.Node instance of the mask, as returned from WidgetModal._GET_MASK","         */","        _getMaskNode : function () {","","            return WidgetModal._GET_MASK();","        },","","        /**","         * Performs events attaching/detaching, stack shifting and mask repositioning based on the visibility of the widget","         *","         * @method _uiSetHostVisibleModal","         * @protected","         * @param {boolean} Whether the widget is visible or not","         */","        _uiSetHostVisibleModal : function (visible) {","            var stack    = WidgetModal.STACK,","                maskNode = this.get('maskNode'),","                isModal  = this.get('modal'),","                topModal, index;","","            if (visible) {","","                Y.Array.each(stack, function(modal){","                    modal._detachUIHandlesModal();","                    modal._blur();","                });","","                // push on top of stack","                stack.unshift(this);","","                this._repositionMask(this);","                this._uiSetHostZIndexModal(this.get(Z_INDEX));","","                if (isModal) {","                    maskNode.show();","                    Y.later(1, this, '_attachUIHandlesModal');","                    if (this.get(RENDERED)) {","                        this._focus();","                    }","                }","","","            } else {","","                index = Y.Array.indexOf(stack, this);","                if (index >= 0) {","                    // Remove modal widget from global stack.","                    stack.splice(index, 1);","                }","","                this._detachUIHandlesModal();","                this._blur();","","                if (stack.length) {","                    topModal = stack[0];","                    this._repositionMask(topModal);","                    //topModal._attachUIHandlesModal();","                    topModal._uiSetHostZIndexModal(topModal.get(Z_INDEX));","","                    if (topModal.get('modal')) {","                        //topModal._attachUIHandlesModal();","                        Y.later(1, topModal, '_attachUIHandlesModal');","                        topModal._focus();","                    }","","                } else {","","                    if (maskNode.getStyle('display') === 'block') {","                        maskNode.hide();","                    }","","                }","","            }","        },","","        /**","         * Sets the z-index of the mask node.","         *","         * @method _uiSetHostZIndexModal","         * @protected","         * @param {Number} zIndex Z-Index of the widget","         */","        _uiSetHostZIndexModal : function (zIndex) {","","            if (this.get('modal')) {","                this.get('maskNode').setStyle(Z_INDEX, zIndex || 0);","            }","","        },","","        /**","         * Attaches UI Listeners for \"clickoutside\" and \"focusoutside\" on the","         * widget. When these events occur, and the widget is modal, focus is","         * shifted back onto the widget.","         *","         * @method _attachUIHandlesModal","         * @protected","         */","        _attachUIHandlesModal : function () {","","            if (this._uiHandlesModal || WidgetModal.STACK[0] !== this) {","                // Quit early if we have ui handles, or if we not at the top","                // of the global stack.","                return;","            }","","            var bb          = this.get(BOUNDING_BOX),","                maskNode    = this.get('maskNode'),","                focusOn     = this.get('focusOn'),","                focus       = Y.bind(this._focus, this),","                uiHandles   = [],","                i, len, o;","","            for (i = 0, len = focusOn.length; i < len; i++) {","","                o = {};","                o.node = focusOn[i].node;","                o.ev = focusOn[i].eventName;","                o.keyCode = focusOn[i].keyCode;","","                //no keycode or node defined","                if (!o.node && !o.keyCode && o.ev) {","                    uiHandles.push(bb.on(o.ev, focus));","                }","","                //node defined, no keycode (not a keypress)","                else if (o.node && !o.keyCode && o.ev) {","                    uiHandles.push(o.node.on(o.ev, focus));","                }","","                //node defined, keycode defined, event defined (its a key press)","                else if (o.node && o.keyCode && o.ev) {","                    uiHandles.push(o.node.on(o.ev, focus, o.keyCode));","                }","","                else {","                }","","            }","","            if ( ! supportsPosFixed) {","                uiHandles.push(Y.one('win').on('scroll', Y.bind(function(e){","                    maskNode.setStyle('top', maskNode.get('docScrollY'));","                }, this)));","            }","","            this._uiHandlesModal = uiHandles;","        },","","        /**","         * Detaches all UI Listeners that were set in _attachUIHandlesModal from the widget.","         *","         * @method _detachUIHandlesModal","         * @protected","         */","        _detachUIHandlesModal : function () {","            Y.each(this._uiHandlesModal, function(h){","                h.detach();","            });","            this._uiHandlesModal = null;","        },","","        /**","         * Default function that is called when visibility is changed on the widget.","         *","         * @method _afterHostVisibleChangeModal","         * @protected","         * @param {EventFacade} e The event facade of the change","         */","        _afterHostVisibleChangeModal : function (e) {","","            this._uiSetHostVisibleModal(e.newVal);","        },","","        /**","         * Default function that is called when z-index is changed on the widget.","         *","         * @method _afterHostZIndexChangeModal","         * @protected","         * @param {EventFacade} e The event facade of the change","         */","        _afterHostZIndexChangeModal : function (e) {","","            this._uiSetHostZIndexModal(e.newVal);","        },","","        /**","         * Returns a boolean representing whether the current widget is in a \"nested modality\" state.","         * This is done by checking the number of widgets currently on the stack.","         *","         * @method isNested","         * @public","         */","        isNested: function() {","            var length = WidgetModal.STACK.length,","            retval = (length > 1) ? true : false;","            return retval;","        },","","        /**","         * Repositions the mask in the DOM for nested modality cases.","         *","         * @method _repositionMask","         * @protected","         * @param {Widget} nextElem The Y.Widget instance that will be visible in the stack once the current widget is closed.","         */","        _repositionMask: function(nextElem) {","","            var currentModal = this.get('modal'),","                nextModal    = nextElem.get('modal'),","                maskNode     = this.get('maskNode'),","                bb, bbParent;","","            //if this is modal and host is not modal","            if (currentModal && !nextModal) {","                //leave the mask where it is, since the host is not modal.","                maskNode.remove();","                this.fire(MaskHide);","            }","","            //if the main widget is not modal but the host is modal, or both of them are modal","            else if ((!currentModal && nextModal) || (currentModal && nextModal)) {","","                //then remove the mask off DOM, reposition it, and reinsert it into the DOM","                maskNode.remove();","                this.fire(MaskHide);","                bb = nextElem.get(BOUNDING_BOX);","                bbParent = bb.get('parentNode') || Y.one('body');","                bbParent.insert(maskNode, bbParent.get('firstChild'));","                this.fire(MaskShow);","            }","","        },","","        /**","         * Resyncs the mask in the viewport for browsers that don't support fixed positioning","         *","         * @method _resyncMask","         * @param {Widget} nextElem The Y.Widget instance that will be visible in the stack once the current widget is closed.","         * @private","         */","        _resyncMask: function (e) {","            var o       = e.currentTarget,","                offsetX = o.get('docScrollX'),","                offsetY = o.get('docScrollY'),","                w       = o.get('innerWidth') || o.get('winWidth'),","                h       = o.get('innerHeight') || o.get('winHeight'),","                mask    = this.get('maskNode');","","            mask.setStyles({","                \"top\": offsetY + \"px\",","                \"left\": offsetX + \"px\",","                \"width\": w + 'px',","                \"height\": h + 'px'","            });","        },","","        /**","         * Default function called when focusOn Attribute is changed. Remove existing listeners and create new listeners.","         *","         * @method _afterFocusOnChange","         * @protected","         */","        _afterFocusOnChange : function(e) {","            this._detachUIHandlesModal();","","            if (this.get(VISIBLE)) {","                this._attachUIHandlesModal();","            }","        }","    };","","    Y.WidgetModality = WidgetModal;","","","","}, '@VERSION@', {\"requires\": [\"base-build\", \"event-outside\", \"widget\"], \"skinnable\": true});","","}());"]};
e16a97fb364a Use YUI 3.15
gibus
parents:
diff changeset
     4
}
e16a97fb364a Use YUI 3.15
gibus
parents:
diff changeset
     5
var __cov_3t8wDvjOucpJBP6BEEqjTg = __coverage__['build/widget-modality/widget-modality.js'];
e16a97fb364a Use YUI 3.15
gibus
parents:
diff changeset
     6
__cov_3t8wDvjOucpJBP6BEEqjTg.s['1']++;YUI.add('widget-modality',function(Y,NAME){__cov_3t8wDvjOucpJBP6BEEqjTg.f['1']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['2']++;var WIDGET='widget',RENDER_UI='renderUI',BIND_UI='bindUI',SYNC_UI='syncUI',BOUNDING_BOX='boundingBox',CONTENT_BOX='contentBox',RENDERED='rendered',VISIBLE='visible',Z_INDEX='zIndex',CHANGE='Change',isBoolean=Y.Lang.isBoolean,getCN=Y.ClassNameManager.getClassName,MaskShow='maskShow',MaskHide='maskHide',ClickOutside='clickoutside',FocusOutside='focusoutside',supportsPosFixed=function(){__cov_3t8wDvjOucpJBP6BEEqjTg.f['2']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['3']++;var doc=Y.config.doc,isSupported=null,el,root;__cov_3t8wDvjOucpJBP6BEEqjTg.s['4']++;if(doc.createElement){__cov_3t8wDvjOucpJBP6BEEqjTg.b['1'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['5']++;el=doc.createElement('div');__cov_3t8wDvjOucpJBP6BEEqjTg.s['6']++;if((__cov_3t8wDvjOucpJBP6BEEqjTg.b['3'][0]++,el)&&(__cov_3t8wDvjOucpJBP6BEEqjTg.b['3'][1]++,el.style)){__cov_3t8wDvjOucpJBP6BEEqjTg.b['2'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['7']++;el.style.position='fixed';__cov_3t8wDvjOucpJBP6BEEqjTg.s['8']++;el.style.top='10px';__cov_3t8wDvjOucpJBP6BEEqjTg.s['9']++;root=doc.body;__cov_3t8wDvjOucpJBP6BEEqjTg.s['10']++;if((__cov_3t8wDvjOucpJBP6BEEqjTg.b['5'][0]++,root)&&(__cov_3t8wDvjOucpJBP6BEEqjTg.b['5'][1]++,root.appendChild)&&(__cov_3t8wDvjOucpJBP6BEEqjTg.b['5'][2]++,root.removeChild)){__cov_3t8wDvjOucpJBP6BEEqjTg.b['4'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['11']++;root.appendChild(el);__cov_3t8wDvjOucpJBP6BEEqjTg.s['12']++;isSupported=el.offsetTop===10;__cov_3t8wDvjOucpJBP6BEEqjTg.s['13']++;root.removeChild(el);}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['4'][1]++;}}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['2'][1]++;}}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['1'][1]++;}__cov_3t8wDvjOucpJBP6BEEqjTg.s['14']++;return isSupported;}();__cov_3t8wDvjOucpJBP6BEEqjTg.s['15']++;function WidgetModal(config){__cov_3t8wDvjOucpJBP6BEEqjTg.f['3']++;}__cov_3t8wDvjOucpJBP6BEEqjTg.s['16']++;var MODAL='modal',MASK='mask',MODAL_CLASSES={modal:getCN(WIDGET,MODAL),mask:getCN(WIDGET,MASK)};__cov_3t8wDvjOucpJBP6BEEqjTg.s['17']++;WidgetModal.ATTRS={maskNode:{getter:'_getMaskNode',readOnly:true},modal:{value:false,validator:isBoolean},focusOn:{valueFn:function(){__cov_3t8wDvjOucpJBP6BEEqjTg.f['4']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['18']++;return[{eventName:ClickOutside},{eventName:FocusOutside}];},validator:Y.Lang.isArray}};__cov_3t8wDvjOucpJBP6BEEqjTg.s['19']++;WidgetModal.CLASSES=MODAL_CLASSES;__cov_3t8wDvjOucpJBP6BEEqjTg.s['20']++;WidgetModal._GET_MASK=function(){__cov_3t8wDvjOucpJBP6BEEqjTg.f['5']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['21']++;var mask=Y.one('.'+MODAL_CLASSES.mask),win=Y.one('win');__cov_3t8wDvjOucpJBP6BEEqjTg.s['22']++;if(mask){__cov_3t8wDvjOucpJBP6BEEqjTg.b['6'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['23']++;return mask;}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['6'][1]++;}__cov_3t8wDvjOucpJBP6BEEqjTg.s['24']++;mask=Y.Node.create('<div></div>').addClass(MODAL_CLASSES.mask);__cov_3t8wDvjOucpJBP6BEEqjTg.s['25']++;if(supportsPosFixed){__cov_3t8wDvjOucpJBP6BEEqjTg.b['7'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['26']++;mask.setStyles({position:'fixed',width:'100%',height:'100%',top:'0',left:'0',display:'block'});}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['7'][1]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['27']++;mask.setStyles({position:'absolute',width:win.get('winWidth')+'px',height:win.get('winHeight')+'px',top:'0',left:'0',display:'block'});}__cov_3t8wDvjOucpJBP6BEEqjTg.s['28']++;return mask;};__cov_3t8wDvjOucpJBP6BEEqjTg.s['29']++;WidgetModal.STACK=[];__cov_3t8wDvjOucpJBP6BEEqjTg.s['30']++;WidgetModal.prototype={initializer:function(){__cov_3t8wDvjOucpJBP6BEEqjTg.f['6']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['31']++;Y.after(this._renderUIModal,this,RENDER_UI);__cov_3t8wDvjOucpJBP6BEEqjTg.s['32']++;Y.after(this._syncUIModal,this,SYNC_UI);__cov_3t8wDvjOucpJBP6BEEqjTg.s['33']++;Y.after(this._bindUIModal,this,BIND_UI);},destructor:function(){__cov_3t8wDvjOucpJBP6BEEqjTg.f['7']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['34']++;this._uiSetHostVisibleModal(false);},_uiHandlesModal:null,_renderUIModal:function(){__cov_3t8wDvjOucpJBP6BEEqjTg.f['8']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['35']++;var bb=this.get(BOUNDING_BOX);__cov_3t8wDvjOucpJBP6BEEqjTg.s['36']++;this._repositionMask(this);__cov_3t8wDvjOucpJBP6BEEqjTg.s['37']++;bb.addClass(MODAL_CLASSES.modal);},_bindUIModal:function(){__cov_3t8wDvjOucpJBP6BEEqjTg.f['9']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['38']++;this.after(VISIBLE+CHANGE,this._afterHostVisibleChangeModal);__cov_3t8wDvjOucpJBP6BEEqjTg.s['39']++;this.after(Z_INDEX+CHANGE,this._afterHostZIndexChangeModal);__cov_3t8wDvjOucpJBP6BEEqjTg.s['40']++;this.after('focusOnChange',this._afterFocusOnChange);__cov_3t8wDvjOucpJBP6BEEqjTg.s['41']++;if((__cov_3t8wDvjOucpJBP6BEEqjTg.b['9'][0]++,!supportsPosFixed)||(__cov_3t8wDvjOucpJBP6BEEqjTg.b['9'][1]++,Y.UA.ios)&&(__cov_3t8wDvjOucpJBP6BEEqjTg.b['9'][2]++,Y.UA.ios<5)||(__cov_3t8wDvjOucpJBP6BEEqjTg.b['9'][3]++,Y.UA.android)&&(__cov_3t8wDvjOucpJBP6BEEqjTg.b['9'][4]++,Y.UA.android<3)){__cov_3t8wDvjOucpJBP6BEEqjTg.b['8'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['42']++;Y.one('win').on('scroll',this._resyncMask,this);}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['8'][1]++;}},_syncUIModal:function(){__cov_3t8wDvjOucpJBP6BEEqjTg.f['10']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['43']++;this._uiSetHostVisibleModal(this.get(VISIBLE));},_focus:function(e){__cov_3t8wDvjOucpJBP6BEEqjTg.f['11']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['44']++;var bb=this.get(BOUNDING_BOX),oldTI=bb.get('tabIndex');__cov_3t8wDvjOucpJBP6BEEqjTg.s['45']++;bb.set('tabIndex',oldTI>=0?(__cov_3t8wDvjOucpJBP6BEEqjTg.b['10'][0]++,oldTI):(__cov_3t8wDvjOucpJBP6BEEqjTg.b['10'][1]++,0));__cov_3t8wDvjOucpJBP6BEEqjTg.s['46']++;this.focus();},_blur:function(){__cov_3t8wDvjOucpJBP6BEEqjTg.f['12']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['47']++;this.blur();},_getMaskNode:function(){__cov_3t8wDvjOucpJBP6BEEqjTg.f['13']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['48']++;return WidgetModal._GET_MASK();},_uiSetHostVisibleModal:function(visible){__cov_3t8wDvjOucpJBP6BEEqjTg.f['14']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['49']++;var stack=WidgetModal.STACK,maskNode=this.get('maskNode'),isModal=this.get('modal'),topModal,index;__cov_3t8wDvjOucpJBP6BEEqjTg.s['50']++;if(visible){__cov_3t8wDvjOucpJBP6BEEqjTg.b['11'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['51']++;Y.Array.each(stack,function(modal){__cov_3t8wDvjOucpJBP6BEEqjTg.f['15']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['52']++;modal._detachUIHandlesModal();__cov_3t8wDvjOucpJBP6BEEqjTg.s['53']++;modal._blur();});__cov_3t8wDvjOucpJBP6BEEqjTg.s['54']++;stack.unshift(this);__cov_3t8wDvjOucpJBP6BEEqjTg.s['55']++;this._repositionMask(this);__cov_3t8wDvjOucpJBP6BEEqjTg.s['56']++;this._uiSetHostZIndexModal(this.get(Z_INDEX));__cov_3t8wDvjOucpJBP6BEEqjTg.s['57']++;if(isModal){__cov_3t8wDvjOucpJBP6BEEqjTg.b['12'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['58']++;maskNode.show();__cov_3t8wDvjOucpJBP6BEEqjTg.s['59']++;Y.later(1,this,'_attachUIHandlesModal');__cov_3t8wDvjOucpJBP6BEEqjTg.s['60']++;if(this.get(RENDERED)){__cov_3t8wDvjOucpJBP6BEEqjTg.b['13'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['61']++;this._focus();}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['13'][1]++;}}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['12'][1]++;}}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['11'][1]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['62']++;index=Y.Array.indexOf(stack,this);__cov_3t8wDvjOucpJBP6BEEqjTg.s['63']++;if(index>=0){__cov_3t8wDvjOucpJBP6BEEqjTg.b['14'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['64']++;stack.splice(index,1);}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['14'][1]++;}__cov_3t8wDvjOucpJBP6BEEqjTg.s['65']++;this._detachUIHandlesModal();__cov_3t8wDvjOucpJBP6BEEqjTg.s['66']++;this._blur();__cov_3t8wDvjOucpJBP6BEEqjTg.s['67']++;if(stack.length){__cov_3t8wDvjOucpJBP6BEEqjTg.b['15'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['68']++;topModal=stack[0];__cov_3t8wDvjOucpJBP6BEEqjTg.s['69']++;this._repositionMask(topModal);__cov_3t8wDvjOucpJBP6BEEqjTg.s['70']++;topModal._uiSetHostZIndexModal(topModal.get(Z_INDEX));__cov_3t8wDvjOucpJBP6BEEqjTg.s['71']++;if(topModal.get('modal')){__cov_3t8wDvjOucpJBP6BEEqjTg.b['16'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['72']++;Y.later(1,topModal,'_attachUIHandlesModal');__cov_3t8wDvjOucpJBP6BEEqjTg.s['73']++;topModal._focus();}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['16'][1]++;}}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['15'][1]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['74']++;if(maskNode.getStyle('display')==='block'){__cov_3t8wDvjOucpJBP6BEEqjTg.b['17'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['75']++;maskNode.hide();}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['17'][1]++;}}}},_uiSetHostZIndexModal:function(zIndex){__cov_3t8wDvjOucpJBP6BEEqjTg.f['16']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['76']++;if(this.get('modal')){__cov_3t8wDvjOucpJBP6BEEqjTg.b['18'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['77']++;this.get('maskNode').setStyle(Z_INDEX,(__cov_3t8wDvjOucpJBP6BEEqjTg.b['19'][0]++,zIndex)||(__cov_3t8wDvjOucpJBP6BEEqjTg.b['19'][1]++,0));}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['18'][1]++;}},_attachUIHandlesModal:function(){__cov_3t8wDvjOucpJBP6BEEqjTg.f['17']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['78']++;if((__cov_3t8wDvjOucpJBP6BEEqjTg.b['21'][0]++,this._uiHandlesModal)||(__cov_3t8wDvjOucpJBP6BEEqjTg.b['21'][1]++,WidgetModal.STACK[0]!==this)){__cov_3t8wDvjOucpJBP6BEEqjTg.b['20'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['79']++;return;}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['20'][1]++;}__cov_3t8wDvjOucpJBP6BEEqjTg.s['80']++;var bb=this.get(BOUNDING_BOX),maskNode=this.get('maskNode'),focusOn=this.get('focusOn'),focus=Y.bind(this._focus,this),uiHandles=[],i,len,o;__cov_3t8wDvjOucpJBP6BEEqjTg.s['81']++;for(i=0,len=focusOn.length;i<len;i++){__cov_3t8wDvjOucpJBP6BEEqjTg.s['82']++;o={};__cov_3t8wDvjOucpJBP6BEEqjTg.s['83']++;o.node=focusOn[i].node;__cov_3t8wDvjOucpJBP6BEEqjTg.s['84']++;o.ev=focusOn[i].eventName;__cov_3t8wDvjOucpJBP6BEEqjTg.s['85']++;o.keyCode=focusOn[i].keyCode;__cov_3t8wDvjOucpJBP6BEEqjTg.s['86']++;if((__cov_3t8wDvjOucpJBP6BEEqjTg.b['23'][0]++,!o.node)&&(__cov_3t8wDvjOucpJBP6BEEqjTg.b['23'][1]++,!o.keyCode)&&(__cov_3t8wDvjOucpJBP6BEEqjTg.b['23'][2]++,o.ev)){__cov_3t8wDvjOucpJBP6BEEqjTg.b['22'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['87']++;uiHandles.push(bb.on(o.ev,focus));}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['22'][1]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['88']++;if((__cov_3t8wDvjOucpJBP6BEEqjTg.b['25'][0]++,o.node)&&(__cov_3t8wDvjOucpJBP6BEEqjTg.b['25'][1]++,!o.keyCode)&&(__cov_3t8wDvjOucpJBP6BEEqjTg.b['25'][2]++,o.ev)){__cov_3t8wDvjOucpJBP6BEEqjTg.b['24'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['89']++;uiHandles.push(o.node.on(o.ev,focus));}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['24'][1]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['90']++;if((__cov_3t8wDvjOucpJBP6BEEqjTg.b['27'][0]++,o.node)&&(__cov_3t8wDvjOucpJBP6BEEqjTg.b['27'][1]++,o.keyCode)&&(__cov_3t8wDvjOucpJBP6BEEqjTg.b['27'][2]++,o.ev)){__cov_3t8wDvjOucpJBP6BEEqjTg.b['26'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['91']++;uiHandles.push(o.node.on(o.ev,focus,o.keyCode));}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['26'][1]++;}}}}__cov_3t8wDvjOucpJBP6BEEqjTg.s['92']++;if(!supportsPosFixed){__cov_3t8wDvjOucpJBP6BEEqjTg.b['28'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['93']++;uiHandles.push(Y.one('win').on('scroll',Y.bind(function(e){__cov_3t8wDvjOucpJBP6BEEqjTg.f['18']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['94']++;maskNode.setStyle('top',maskNode.get('docScrollY'));},this)));}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['28'][1]++;}__cov_3t8wDvjOucpJBP6BEEqjTg.s['95']++;this._uiHandlesModal=uiHandles;},_detachUIHandlesModal:function(){__cov_3t8wDvjOucpJBP6BEEqjTg.f['19']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['96']++;Y.each(this._uiHandlesModal,function(h){__cov_3t8wDvjOucpJBP6BEEqjTg.f['20']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['97']++;h.detach();});__cov_3t8wDvjOucpJBP6BEEqjTg.s['98']++;this._uiHandlesModal=null;},_afterHostVisibleChangeModal:function(e){__cov_3t8wDvjOucpJBP6BEEqjTg.f['21']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['99']++;this._uiSetHostVisibleModal(e.newVal);},_afterHostZIndexChangeModal:function(e){__cov_3t8wDvjOucpJBP6BEEqjTg.f['22']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['100']++;this._uiSetHostZIndexModal(e.newVal);},isNested:function(){__cov_3t8wDvjOucpJBP6BEEqjTg.f['23']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['101']++;var length=WidgetModal.STACK.length,retval=length>1?(__cov_3t8wDvjOucpJBP6BEEqjTg.b['29'][0]++,true):(__cov_3t8wDvjOucpJBP6BEEqjTg.b['29'][1]++,false);__cov_3t8wDvjOucpJBP6BEEqjTg.s['102']++;return retval;},_repositionMask:function(nextElem){__cov_3t8wDvjOucpJBP6BEEqjTg.f['24']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['103']++;var currentModal=this.get('modal'),nextModal=nextElem.get('modal'),maskNode=this.get('maskNode'),bb,bbParent;__cov_3t8wDvjOucpJBP6BEEqjTg.s['104']++;if((__cov_3t8wDvjOucpJBP6BEEqjTg.b['31'][0]++,currentModal)&&(__cov_3t8wDvjOucpJBP6BEEqjTg.b['31'][1]++,!nextModal)){__cov_3t8wDvjOucpJBP6BEEqjTg.b['30'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['105']++;maskNode.remove();__cov_3t8wDvjOucpJBP6BEEqjTg.s['106']++;this.fire(MaskHide);}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['30'][1]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['107']++;if((__cov_3t8wDvjOucpJBP6BEEqjTg.b['33'][0]++,!currentModal)&&(__cov_3t8wDvjOucpJBP6BEEqjTg.b['33'][1]++,nextModal)||(__cov_3t8wDvjOucpJBP6BEEqjTg.b['33'][2]++,currentModal)&&(__cov_3t8wDvjOucpJBP6BEEqjTg.b['33'][3]++,nextModal)){__cov_3t8wDvjOucpJBP6BEEqjTg.b['32'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['108']++;maskNode.remove();__cov_3t8wDvjOucpJBP6BEEqjTg.s['109']++;this.fire(MaskHide);__cov_3t8wDvjOucpJBP6BEEqjTg.s['110']++;bb=nextElem.get(BOUNDING_BOX);__cov_3t8wDvjOucpJBP6BEEqjTg.s['111']++;bbParent=(__cov_3t8wDvjOucpJBP6BEEqjTg.b['34'][0]++,bb.get('parentNode'))||(__cov_3t8wDvjOucpJBP6BEEqjTg.b['34'][1]++,Y.one('body'));__cov_3t8wDvjOucpJBP6BEEqjTg.s['112']++;bbParent.insert(maskNode,bbParent.get('firstChild'));__cov_3t8wDvjOucpJBP6BEEqjTg.s['113']++;this.fire(MaskShow);}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['32'][1]++;}}},_resyncMask:function(e){__cov_3t8wDvjOucpJBP6BEEqjTg.f['25']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['114']++;var o=e.currentTarget,offsetX=o.get('docScrollX'),offsetY=o.get('docScrollY'),w=(__cov_3t8wDvjOucpJBP6BEEqjTg.b['35'][0]++,o.get('innerWidth'))||(__cov_3t8wDvjOucpJBP6BEEqjTg.b['35'][1]++,o.get('winWidth')),h=(__cov_3t8wDvjOucpJBP6BEEqjTg.b['36'][0]++,o.get('innerHeight'))||(__cov_3t8wDvjOucpJBP6BEEqjTg.b['36'][1]++,o.get('winHeight')),mask=this.get('maskNode');__cov_3t8wDvjOucpJBP6BEEqjTg.s['115']++;mask.setStyles({'top':offsetY+'px','left':offsetX+'px','width':w+'px','height':h+'px'});},_afterFocusOnChange:function(e){__cov_3t8wDvjOucpJBP6BEEqjTg.f['26']++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['116']++;this._detachUIHandlesModal();__cov_3t8wDvjOucpJBP6BEEqjTg.s['117']++;if(this.get(VISIBLE)){__cov_3t8wDvjOucpJBP6BEEqjTg.b['37'][0]++;__cov_3t8wDvjOucpJBP6BEEqjTg.s['118']++;this._attachUIHandlesModal();}else{__cov_3t8wDvjOucpJBP6BEEqjTg.b['37'][1]++;}}};__cov_3t8wDvjOucpJBP6BEEqjTg.s['119']++;Y.WidgetModality=WidgetModal;},'@VERSION@',{'requires':['base-build','event-outside','widget'],'skinnable':true});