diff --git a/build/dd-ddm-drop/dd-ddm-drop-coverage.js b/build/dd-ddm-drop/dd-ddm-drop-coverage.js index 11d4047822d..3771a38896f 100644 --- a/build/dd-ddm-drop/dd-ddm-drop-coverage.js +++ b/build/dd-ddm-drop/dd-ddm-drop-coverage.js @@ -1,6 +1,6 @@ if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/dd-ddm-drop/dd-ddm-drop.js']) { - __coverage__['build/dd-ddm-drop/dd-ddm-drop.js'] = {"path":"build/dd-ddm-drop/dd-ddm-drop.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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0]},"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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":42}}},"2":{"name":"(anonymous_2)","line":35,"loc":{"start":{"line":35,"column":24},"end":{"line":35,"column":35}}},"3":{"name":"(anonymous_3)","line":47,"loc":{"start":{"line":47,"column":24},"end":{"line":47,"column":36}}},"4":{"name":"(anonymous_4)","line":56,"loc":{"start":{"line":56,"column":27},"end":{"line":56,"column":39}}},"5":{"name":"(anonymous_5)","line":58,"loc":{"start":{"line":58,"column":44},"end":{"line":58,"column":56}}},"6":{"name":"(anonymous_6)","line":71,"loc":{"start":{"line":71,"column":25},"end":{"line":71,"column":41}}},"7":{"name":"(anonymous_7)","line":72,"loc":{"start":{"line":72,"column":29},"end":{"line":72,"column":45}}},"8":{"name":"(anonymous_8)","line":74,"loc":{"start":{"line":74,"column":36},"end":{"line":74,"column":48}}},"9":{"name":"(anonymous_9)","line":145,"loc":{"start":{"line":145,"column":19},"end":{"line":145,"column":34}}},"10":{"name":"(anonymous_10)","line":156,"loc":{"start":{"line":156,"column":22},"end":{"line":156,"column":37}}},"11":{"name":"(anonymous_11)","line":158,"loc":{"start":{"line":158,"column":42},"end":{"line":158,"column":54}}},"12":{"name":"(anonymous_12)","line":173,"loc":{"start":{"line":173,"column":22},"end":{"line":173,"column":37}}},"13":{"name":"(anonymous_13)","line":206,"loc":{"start":{"line":206,"column":20},"end":{"line":206,"column":31}}},"14":{"name":"(anonymous_14)","line":216,"loc":{"start":{"line":216,"column":26},"end":{"line":216,"column":37}}},"15":{"name":"(anonymous_15)","line":219,"loc":{"start":{"line":219,"column":39},"end":{"line":219,"column":51}}},"16":{"name":"(anonymous_16)","line":235,"loc":{"start":{"line":235,"column":22},"end":{"line":235,"column":43}}},"17":{"name":"(anonymous_17)","line":238,"loc":{"start":{"line":238,"column":32},"end":{"line":238,"column":44}}},"18":{"name":"(anonymous_18)","line":252,"loc":{"start":{"line":252,"column":36},"end":{"line":252,"column":48}}},"19":{"name":"(anonymous_19)","line":266,"loc":{"start":{"line":266,"column":28},"end":{"line":266,"column":39}}},"20":{"name":"(anonymous_20)","line":294,"loc":{"start":{"line":294,"column":39},"end":{"line":294,"column":51}}},"21":{"name":"(anonymous_21)","line":303,"loc":{"start":{"line":303,"column":19},"end":{"line":303,"column":30}}},"22":{"name":"(anonymous_22)","line":307,"loc":{"start":{"line":307,"column":46},"end":{"line":307,"column":58}}},"23":{"name":"(anonymous_23)","line":318,"loc":{"start":{"line":318,"column":17},"end":{"line":318,"column":28}}},"24":{"name":"(anonymous_24)","line":324,"loc":{"start":{"line":324,"column":42},"end":{"line":324,"column":54}}},"25":{"name":"(anonymous_25)","line":337,"loc":{"start":{"line":337,"column":27},"end":{"line":337,"column":38}}},"26":{"name":"(anonymous_26)","line":339,"loc":{"start":{"line":339,"column":32},"end":{"line":339,"column":44}}},"27":{"name":"(anonymous_27)","line":349,"loc":{"start":{"line":349,"column":20},"end":{"line":349,"column":32}}},"28":{"name":"(anonymous_28)","line":358,"loc":{"start":{"line":358,"column":22},"end":{"line":358,"column":37}}},"29":{"name":"(anonymous_29)","line":360,"loc":{"start":{"line":360,"column":39},"end":{"line":360,"column":51}}},"30":{"name":"(anonymous_30)","line":368,"loc":{"start":{"line":368,"column":42},"end":{"line":368,"column":54}}},"31":{"name":"(anonymous_31)","line":382,"loc":{"start":{"line":382,"column":17},"end":{"line":382,"column":32}}},"32":{"name":"(anonymous_32)","line":386,"loc":{"start":{"line":386,"column":43},"end":{"line":386,"column":55}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":399,"column":42}},"2":{"start":{"line":14,"column":4},"end":{"line":394,"column":13}},"3":{"start":{"line":36,"column":12},"end":{"line":38,"column":13}},"4":{"start":{"line":37,"column":16},"end":{"line":37,"column":28}},"5":{"start":{"line":39,"column":12},"end":{"line":39,"column":44}},"6":{"start":{"line":48,"column":12},"end":{"line":48,"column":38}},"7":{"start":{"line":57,"column":12},"end":{"line":57,"column":23}},"8":{"start":{"line":58,"column":12},"end":{"line":63,"column":15}},"9":{"start":{"line":59,"column":16},"end":{"line":61,"column":17}},"10":{"start":{"line":60,"column":20},"end":{"line":60,"column":30}},"11":{"start":{"line":64,"column":12},"end":{"line":64,"column":34}},"12":{"start":{"line":72,"column":12},"end":{"line":77,"column":22}},"13":{"start":{"line":73,"column":16},"end":{"line":73,"column":70}},"14":{"start":{"line":74,"column":16},"end":{"line":76,"column":25}},"15":{"start":{"line":75,"column":20},"end":{"line":75,"column":39}},"16":{"start":{"line":146,"column":12},"end":{"line":146,"column":39}},"17":{"start":{"line":147,"column":12},"end":{"line":147,"column":24}},"18":{"start":{"line":157,"column":12},"end":{"line":157,"column":27}},"19":{"start":{"line":158,"column":12},"end":{"line":162,"column":15}},"20":{"start":{"line":159,"column":16},"end":{"line":161,"column":17}},"21":{"start":{"line":160,"column":20},"end":{"line":160,"column":34}},"22":{"start":{"line":164,"column":12},"end":{"line":164,"column":36}},"23":{"start":{"line":165,"column":12},"end":{"line":165,"column":24}},"24":{"start":{"line":174,"column":12},"end":{"line":199,"column":13}},"25":{"start":{"line":175,"column":16},"end":{"line":176,"column":46}},"26":{"start":{"line":177,"column":16},"end":{"line":198,"column":17}},"27":{"start":{"line":178,"column":20},"end":{"line":178,"column":53}},"28":{"start":{"line":179,"column":20},"end":{"line":181,"column":21}},"29":{"start":{"line":180,"column":24},"end":{"line":180,"column":100}},"30":{"start":{"line":182,"column":20},"end":{"line":197,"column":21}},"31":{"start":{"line":183,"column":24},"end":{"line":186,"column":25}},"32":{"start":{"line":184,"column":28},"end":{"line":184,"column":71}},"33":{"start":{"line":185,"column":28},"end":{"line":185,"column":87}},"34":{"start":{"line":188,"column":24},"end":{"line":190,"column":25}},"35":{"start":{"line":189,"column":28},"end":{"line":189,"column":52}},"36":{"start":{"line":191,"column":24},"end":{"line":196,"column":49}},"37":{"start":{"line":200,"column":12},"end":{"line":200,"column":25}},"38":{"start":{"line":207,"column":12},"end":{"line":207,"column":33}},"39":{"start":{"line":208,"column":12},"end":{"line":208,"column":33}},"40":{"start":{"line":209,"column":12},"end":{"line":209,"column":35}},"41":{"start":{"line":217,"column":12},"end":{"line":217,"column":32}},"42":{"start":{"line":218,"column":12},"end":{"line":218,"column":30}},"43":{"start":{"line":219,"column":12},"end":{"line":224,"column":21}},"44":{"start":{"line":220,"column":16},"end":{"line":220,"column":36}},"45":{"start":{"line":221,"column":16},"end":{"line":223,"column":17}},"46":{"start":{"line":222,"column":20},"end":{"line":222,"column":41}},"47":{"start":{"line":225,"column":12},"end":{"line":225,"column":37}},"48":{"start":{"line":236,"column":12},"end":{"line":236,"column":46}},"49":{"start":{"line":238,"column":12},"end":{"line":248,"column":21}},"50":{"start":{"line":239,"column":16},"end":{"line":239,"column":85}},"51":{"start":{"line":240,"column":16},"end":{"line":240,"column":43}},"52":{"start":{"line":242,"column":16},"end":{"line":247,"column":17}},"53":{"start":{"line":243,"column":20},"end":{"line":246,"column":21}},"54":{"start":{"line":244,"column":24},"end":{"line":244,"column":42}},"55":{"start":{"line":245,"column":24},"end":{"line":245,"column":36}},"56":{"start":{"line":249,"column":12},"end":{"line":258,"column":13}},"57":{"start":{"line":250,"column":16},"end":{"line":250,"column":25}},"58":{"start":{"line":252,"column":16},"end":{"line":256,"column":25}},"59":{"start":{"line":253,"column":20},"end":{"line":255,"column":21}},"60":{"start":{"line":254,"column":24},"end":{"line":254,"column":36}},"61":{"start":{"line":257,"column":16},"end":{"line":257,"column":38}},"62":{"start":{"line":259,"column":12},"end":{"line":259,"column":27}},"63":{"start":{"line":267,"column":12},"end":{"line":269,"column":45}},"64":{"start":{"line":272,"column":12},"end":{"line":290,"column":13}},"65":{"start":{"line":273,"column":16},"end":{"line":281,"column":17}},"66":{"start":{"line":275,"column":20},"end":{"line":275,"column":44}},"67":{"start":{"line":276,"column":20},"end":{"line":276,"column":45}},"68":{"start":{"line":278,"column":20},"end":{"line":278,"column":67}},"69":{"start":{"line":279,"column":20},"end":{"line":279,"column":40}},"70":{"start":{"line":280,"column":20},"end":{"line":280,"column":35}},"71":{"start":{"line":282,"column":16},"end":{"line":282,"column":83}},"72":{"start":{"line":283,"column":16},"end":{"line":286,"column":17}},"73":{"start":{"line":284,"column":20},"end":{"line":284,"column":103}},"74":{"start":{"line":285,"column":20},"end":{"line":285,"column":108}},"75":{"start":{"line":287,"column":19},"end":{"line":290,"column":13}},"76":{"start":{"line":288,"column":16},"end":{"line":288,"column":83}},"77":{"start":{"line":289,"column":16},"end":{"line":289,"column":111}},"78":{"start":{"line":292,"column":12},"end":{"line":292,"column":35}},"79":{"start":{"line":294,"column":12},"end":{"line":296,"column":21}},"80":{"start":{"line":295,"column":16},"end":{"line":295,"column":38}},"81":{"start":{"line":304,"column":12},"end":{"line":310,"column":13}},"82":{"start":{"line":305,"column":16},"end":{"line":305,"column":41}},"83":{"start":{"line":307,"column":16},"end":{"line":309,"column":19}},"84":{"start":{"line":308,"column":20},"end":{"line":308,"column":46}},"85":{"start":{"line":319,"column":12},"end":{"line":321,"column":13}},"86":{"start":{"line":320,"column":16},"end":{"line":320,"column":39}},"87":{"start":{"line":322,"column":12},"end":{"line":322,"column":27}},"88":{"start":{"line":324,"column":12},"end":{"line":328,"column":15}},"89":{"start":{"line":325,"column":16},"end":{"line":327,"column":17}},"90":{"start":{"line":326,"column":20},"end":{"line":326,"column":34}},"91":{"start":{"line":329,"column":12},"end":{"line":329,"column":25}},"92":{"start":{"line":338,"column":12},"end":{"line":338,"column":39}},"93":{"start":{"line":339,"column":12},"end":{"line":341,"column":21}},"94":{"start":{"line":340,"column":16},"end":{"line":340,"column":44}},"95":{"start":{"line":350,"column":12},"end":{"line":350,"column":33}},"96":{"start":{"line":359,"column":12},"end":{"line":359,"column":37}},"97":{"start":{"line":360,"column":12},"end":{"line":364,"column":21}},"98":{"start":{"line":361,"column":16},"end":{"line":363,"column":17}},"99":{"start":{"line":362,"column":20},"end":{"line":362,"column":36}},"100":{"start":{"line":365,"column":12},"end":{"line":365,"column":35}},"101":{"start":{"line":367,"column":12},"end":{"line":367,"column":24}},"102":{"start":{"line":368,"column":12},"end":{"line":372,"column":15}},"103":{"start":{"line":369,"column":16},"end":{"line":371,"column":17}},"104":{"start":{"line":370,"column":20},"end":{"line":370,"column":35}},"105":{"start":{"line":374,"column":12},"end":{"line":374,"column":37}},"106":{"start":{"line":383,"column":12},"end":{"line":384,"column":32}},"107":{"start":{"line":385,"column":12},"end":{"line":391,"column":13}},"108":{"start":{"line":386,"column":16},"end":{"line":390,"column":19}},"109":{"start":{"line":387,"column":20},"end":{"line":389,"column":21}},"110":{"start":{"line":388,"column":24},"end":{"line":388,"column":33}},"111":{"start":{"line":392,"column":12},"end":{"line":392,"column":24}}},"branchMap":{"1":{"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}}]},"2":{"line":59,"type":"if","locations":[{"start":{"line":59,"column":16},"end":{"line":59,"column":16}},{"start":{"line":59,"column":16},"end":{"line":59,"column":16}}]},"3":{"line":73,"type":"cond-expr","locations":[{"start":{"line":73,"column":39},"end":{"line":73,"column":51}},{"start":{"line":73,"column":54},"end":{"line":73,"column":68}}]},"4":{"line":159,"type":"if","locations":[{"start":{"line":159,"column":16},"end":{"line":159,"column":16}},{"start":{"line":159,"column":16},"end":{"line":159,"column":16}}]},"5":{"line":174,"type":"if","locations":[{"start":{"line":174,"column":12},"end":{"line":174,"column":12}},{"start":{"line":174,"column":12},"end":{"line":174,"column":12}}]},"6":{"line":174,"type":"binary-expr","locations":[{"start":{"line":174,"column":16},"end":{"line":174,"column":31}},{"start":{"line":174,"column":35},"end":{"line":174,"column":39}}]},"7":{"line":177,"type":"if","locations":[{"start":{"line":177,"column":16},"end":{"line":177,"column":16}},{"start":{"line":177,"column":16},"end":{"line":177,"column":16}}]},"8":{"line":177,"type":"binary-expr","locations":[{"start":{"line":177,"column":20},"end":{"line":177,"column":22}},{"start":{"line":177,"column":26},"end":{"line":177,"column":41}}]},"9":{"line":179,"type":"if","locations":[{"start":{"line":179,"column":20},"end":{"line":179,"column":20}},{"start":{"line":179,"column":20},"end":{"line":179,"column":20}}]},"10":{"line":182,"type":"if","locations":[{"start":{"line":182,"column":20},"end":{"line":182,"column":20}},{"start":{"line":182,"column":20},"end":{"line":182,"column":20}}]},"11":{"line":182,"type":"binary-expr","locations":[{"start":{"line":182,"column":24},"end":{"line":182,"column":28}},{"start":{"line":182,"column":32},"end":{"line":182,"column":41}}]},"12":{"line":183,"type":"if","locations":[{"start":{"line":183,"column":24},"end":{"line":183,"column":24}},{"start":{"line":183,"column":24},"end":{"line":183,"column":24}}]},"13":{"line":183,"type":"binary-expr","locations":[{"start":{"line":183,"column":29},"end":{"line":183,"column":53}},{"start":{"line":183,"column":58},"end":{"line":183,"column":70}}]},"14":{"line":184,"type":"binary-expr","locations":[{"start":{"line":184,"column":32},"end":{"line":184,"column":39}},{"start":{"line":184,"column":43},"end":{"line":184,"column":70}}]},"15":{"line":188,"type":"if","locations":[{"start":{"line":188,"column":24},"end":{"line":188,"column":24}},{"start":{"line":188,"column":24},"end":{"line":188,"column":24}}]},"16":{"line":221,"type":"if","locations":[{"start":{"line":221,"column":16},"end":{"line":221,"column":16}},{"start":{"line":221,"column":16},"end":{"line":221,"column":16}}]},"17":{"line":242,"type":"if","locations":[{"start":{"line":242,"column":16},"end":{"line":242,"column":16}},{"start":{"line":242,"column":16},"end":{"line":242,"column":16}}]},"18":{"line":243,"type":"if","locations":[{"start":{"line":243,"column":20},"end":{"line":243,"column":20}},{"start":{"line":243,"column":20},"end":{"line":243,"column":20}}]},"19":{"line":249,"type":"if","locations":[{"start":{"line":249,"column":12},"end":{"line":249,"column":12}},{"start":{"line":249,"column":12},"end":{"line":249,"column":12}}]},"20":{"line":253,"type":"if","locations":[{"start":{"line":253,"column":20},"end":{"line":253,"column":20}},{"start":{"line":253,"column":20},"end":{"line":253,"column":20}}]},"21":{"line":272,"type":"if","locations":[{"start":{"line":272,"column":12},"end":{"line":272,"column":12}},{"start":{"line":272,"column":12},"end":{"line":272,"column":12}}]},"22":{"line":272,"type":"binary-expr","locations":[{"start":{"line":272,"column":16},"end":{"line":272,"column":26}},{"start":{"line":272,"column":30},"end":{"line":272,"column":40}},{"start":{"line":272,"column":44},"end":{"line":272,"column":71}}]},"23":{"line":273,"type":"if","locations":[{"start":{"line":273,"column":16},"end":{"line":273,"column":16}},{"start":{"line":273,"column":16},"end":{"line":273,"column":16}}]},"24":{"line":283,"type":"if","locations":[{"start":{"line":283,"column":16},"end":{"line":283,"column":16}},{"start":{"line":283,"column":16},"end":{"line":283,"column":16}}]},"25":{"line":287,"type":"if","locations":[{"start":{"line":287,"column":19},"end":{"line":287,"column":19}},{"start":{"line":287,"column":19},"end":{"line":287,"column":19}}]},"26":{"line":287,"type":"binary-expr","locations":[{"start":{"line":287,"column":23},"end":{"line":287,"column":33}},{"start":{"line":287,"column":37},"end":{"line":287,"column":63}}]},"27":{"line":304,"type":"if","locations":[{"start":{"line":304,"column":12},"end":{"line":304,"column":12}},{"start":{"line":304,"column":12},"end":{"line":304,"column":12}}]},"28":{"line":319,"type":"if","locations":[{"start":{"line":319,"column":12},"end":{"line":319,"column":12}},{"start":{"line":319,"column":12},"end":{"line":319,"column":12}}]},"29":{"line":319,"type":"binary-expr","locations":[{"start":{"line":319,"column":16},"end":{"line":319,"column":29}},{"start":{"line":319,"column":33},"end":{"line":319,"column":45}}]},"30":{"line":325,"type":"if","locations":[{"start":{"line":325,"column":16},"end":{"line":325,"column":16}},{"start":{"line":325,"column":16},"end":{"line":325,"column":16}}]},"31":{"line":325,"type":"binary-expr","locations":[{"start":{"line":325,"column":20},"end":{"line":325,"column":26}},{"start":{"line":325,"column":30},"end":{"line":325,"column":70}}]},"32":{"line":361,"type":"if","locations":[{"start":{"line":361,"column":16},"end":{"line":361,"column":16}},{"start":{"line":361,"column":16},"end":{"line":361,"column":16}}]},"33":{"line":369,"type":"if","locations":[{"start":{"line":369,"column":16},"end":{"line":369,"column":16}},{"start":{"line":369,"column":16},"end":{"line":369,"column":16}}]},"34":{"line":385,"type":"if","locations":[{"start":{"line":385,"column":12},"end":{"line":385,"column":12}},{"start":{"line":385,"column":12},"end":{"line":385,"column":12}}]},"35":{"line":387,"type":"if","locations":[{"start":{"line":387,"column":20},"end":{"line":387,"column":20}},{"start":{"line":387,"column":20},"end":{"line":387,"column":20}}]}},"code":["(function () { YUI.add('dd-ddm-drop', function (Y, NAME) {","",""," /**"," * Extends the dd-ddm Class to add support for the placement of Drop Target"," * shims inside the viewport shim. It also handles all Drop Target related events and interactions."," * @module dd"," * @submodule dd-ddm-drop"," * @for DDM"," * @namespace DD"," */",""," //TODO CSS class name for the bestMatch.."," Y.mix(Y.DD.DDM, {"," /**"," * This flag turns off the use of the mouseover/mouseout shim. It should not be used unless you know what you are doing."," * @private"," * @property _noShim"," * @type {Boolean}"," */"," _noShim: false,"," /**"," * Placeholder for all active shims on the page"," * @private"," * @property _activeShims"," * @type {Array}"," */"," _activeShims: [],"," /**"," * This method checks the _activeShims Object to see if there is a shim active."," * @private"," * @method _hasActiveShim"," * @return {Boolean}"," */"," _hasActiveShim: function() {"," if (this._noShim) {"," return true;"," }"," return this._activeShims.length;"," },"," /**"," * Adds a Drop Target to the list of active shims"," * @private"," * @method _addActiveShim"," * @param {Object} d The Drop instance to add to the list."," */"," _addActiveShim: function(d) {"," this._activeShims.push(d);"," },"," /**"," * Removes a Drop Target to the list of active shims"," * @private"," * @method _removeActiveShim"," * @param {Object} d The Drop instance to remove from the list."," */"," _removeActiveShim: function(d) {"," var s = [];"," Y.Array.each(this._activeShims, function(v) {"," if (v._yuid !== d._yuid) {"," s.push(v);"," }",""," });"," this._activeShims = s;"," },"," /**"," * This method will sync the position of the shims on the Drop Targets that are currently active."," * @method syncActiveShims"," * @param {Boolean} force Resize/sync all Targets."," */"," syncActiveShims: function(force) {"," Y.later(0, this, function(force) {"," var drops = ((force) ? this.targets : this._lookup());"," Y.Array.each(drops, function(v) {"," v.sizeShim.call(v);"," }, this);"," }, force);"," },"," /**"," * The mode that the drag operations will run in 0 for Point, 1 for Intersect, 2 for Strict"," * @private"," * @property mode"," * @type Number"," */"," mode: 0,"," /**"," * In point mode, a Drop is targeted by the cursor being over the Target"," * @private"," * @property POINT"," * @type Number"," */"," POINT: 0,"," /**"," * In intersect mode, a Drop is targeted by \"part\" of the drag node being over the Target"," * @private"," * @property INTERSECT"," * @type Number"," */"," INTERSECT: 1,"," /**"," * In strict mode, a Drop is targeted by the \"entire\" drag node being over the Target"," * @private"," * @property STRICT"," * @type Number"," */"," STRICT: 2,"," /**"," * Should we only check targets that are in the viewport on drags (for performance), default: true"," * @property useHash"," * @type {Boolean}"," */"," useHash: true,"," /**"," * A reference to the active Drop Target"," * @property activeDrop"," * @type {Object}"," */"," activeDrop: null,"," /**"," * An array of the valid Drop Targets for this interaction."," * @property validDrops"," * @type {Array}"," */"," //TODO Change array/object literals to be in sync.."," validDrops: [],"," /**"," * An object literal of Other Drop Targets that we encountered during this interaction (in the case of overlapping Drop Targets)"," * @property otherDrops"," * @type {Object}"," */"," otherDrops: {},"," /**"," * All of the Targets"," * @property targets"," * @type {Array}"," */"," targets: [],"," /**"," * Add a Drop Target to the list of Valid Targets. This list get's regenerated on each new drag operation."," * @private"," * @method _addValid"," * @param {Object} drop"," * @chainable"," */"," _addValid: function(drop) {"," this.validDrops.push(drop);"," return this;"," },"," /**"," * Removes a Drop Target from the list of Valid Targets. This list get's regenerated on each new drag operation."," * @private"," * @method _removeValid"," * @param {Object} drop"," * @chainable"," */"," _removeValid: function(drop) {"," var drops = [];"," Y.Array.each(this.validDrops, function(v) {"," if (v !== drop) {"," drops.push(v);"," }"," });",""," this.validDrops = drops;"," return this;"," },"," /**"," * Check to see if the Drag element is over the target, method varies on current mode"," * @method isOverTarget"," * @param {Object} drop The drop to check against"," * @return {Boolean}"," */"," isOverTarget: function(drop) {"," if (this.activeDrag && drop) {"," var xy = this.activeDrag.mouseXY, r, dMode = this.activeDrag.get('dragMode'),"," aRegion, node = drop.shim;"," if (xy && this.activeDrag) {"," aRegion = this.activeDrag.region;"," if (dMode === this.STRICT) {"," return this.activeDrag.get('dragNode').inRegion(drop.region, true, aRegion);"," }"," if (drop && drop.shim) {"," if ((dMode === this.INTERSECT) && this._noShim) {"," r = aRegion || this.activeDrag.get('node');"," return drop.get('node').intersect(r, drop.region).inRegion;"," }",""," if (this._noShim) {"," node = drop.get('node');"," }"," return node.intersect({"," top: xy[1],"," bottom: xy[1],"," left: xy[0],"," right: xy[0]"," }, drop.region).inRegion;"," }"," }"," }"," return false;"," },"," /**"," * Clears the cache data used for this interaction."," * @method clearCache"," */"," clearCache: function() {"," this.validDrops = [];"," this.otherDrops = {};"," this._activeShims = [];"," },"," /**"," * Clear the cache and activate the shims of all the targets"," * @private"," * @method _activateTargets"," */"," _activateTargets: function() {"," this._noShim = true;"," this.clearCache();"," Y.Array.each(this.targets, function(v) {"," v._activateShim([]);"," if (v.get('noShim') === true) {"," this._noShim = false;"," }"," }, this);"," this._handleTargetOver();",""," },"," /**"," * This method will gather the area for all potential targets and see which has the hightest covered area and return it."," * @method getBestMatch"," * @param {Array} drops An Array of drops to scan for the best match."," * @param {Boolean} all If present, it returns an Array. First item is best match, second is an Array of the other items in the original Array."," * @return {Object or Array}"," */"," getBestMatch: function(drops, all) {"," var biggest = null, area = 0, out;",""," Y.Array.each(drops, function(v) {"," var inter = this.activeDrag.get('dragNode').intersect(v.get('node'));"," v.region.area = inter.area;",""," if (inter.inRegion) {"," if (inter.area > area) {"," area = inter.area;"," biggest = v;"," }"," }"," }, this);"," if (all) {"," out = [];"," //TODO Sort the others in numeric order by area covered.."," Y.Array.each(drops, function(v) {"," if (v !== biggest) {"," out.push(v);"," }"," }, this);"," return [biggest, out];"," }"," return biggest;"," },"," /**"," * This method fires the drop:hit, drag:drophit, drag:dropmiss methods and deactivates the shims.."," * @private"," * @method _deactivateTargets"," */"," _deactivateTargets: function() {"," var other = [], tmp,"," activeDrag = this.activeDrag,"," activeDrop = this.activeDrop;",""," //TODO why is this check so hard??"," if (activeDrag && activeDrop && this.otherDrops[activeDrop]) {"," if (!activeDrag.get('dragMode')) {"," //TODO otherDrops -- private.."," other = this.otherDrops;"," delete other[activeDrop];"," } else {"," tmp = this.getBestMatch(this.otherDrops, true);"," activeDrop = tmp[0];"," other = tmp[1];"," }"," activeDrag.get('node').removeClass(this.CSS_PREFIX + '-drag-over');"," if (activeDrop) {"," activeDrop.fire('drop:hit', { drag: activeDrag, drop: activeDrop, others: other });"," activeDrag.fire('drag:drophit', { drag: activeDrag, drop: activeDrop, others: other });"," }"," } else if (activeDrag && activeDrag.get('dragging')) {"," activeDrag.get('node').removeClass(this.CSS_PREFIX + '-drag-over');"," activeDrag.fire('drag:dropmiss', { pageX: activeDrag.lastXY[0], pageY: activeDrag.lastXY[1] });"," }",""," this.activeDrop = null;",""," Y.Array.each(this.targets, function(v) {"," v._deactivateShim([]);"," }, this);"," },"," /**"," * This method is called when the move method is called on the Drag Object."," * @private"," * @method _dropMove"," */"," _dropMove: function() {"," if (this._hasActiveShim()) {"," this._handleTargetOver();"," } else {"," Y.Array.each(this.otherDrops, function(v) {"," v._handleOut.apply(v, []);"," });"," }"," },"," /**"," * Filters the list of Drops down to those in the viewport."," * @private"," * @method _lookup"," * @return {Array} The valid Drop Targets that are in the viewport."," */"," _lookup: function() {"," if (!this.useHash || this._noShim) {"," return this.validDrops;"," }"," var drops = [];"," //Only scan drop shims that are in the Viewport"," Y.Array.each(this.validDrops, function(v) {"," if (v.shim && v.shim.inViewportRegion(false, v.region)) {"," drops.push(v);"," }"," });"," return drops;",""," },"," /**"," * This method execs _handleTargetOver on all valid Drop Targets"," * @private"," * @method _handleTargetOver"," */"," _handleTargetOver: function() {"," var drops = this._lookup();"," Y.Array.each(drops, function(v) {"," v._handleTargetOver.call(v);"," }, this);"," },"," /**"," * Add the passed in Target to the targets collection"," * @private"," * @method _regTarget"," * @param {Object} t The Target to add to the targets collection"," */"," _regTarget: function(t) {"," this.targets.push(t);"," },"," /**"," * Remove the passed in Target from the targets collection"," * @private"," * @method _unregTarget"," * @param {Object} drop The Target to remove from the targets collection"," */"," _unregTarget: function(drop) {"," var targets = [], vdrops;"," Y.Array.each(this.targets, function(v) {"," if (v !== drop) {"," targets.push(v);"," }"," }, this);"," this.targets = targets;",""," vdrops = [];"," Y.Array.each(this.validDrops, function(v) {"," if (v !== drop) {"," vdrops.push(v);"," }"," });",""," this.validDrops = vdrops;"," },"," /**"," * Get a valid Drop instance back from a Node or a selector string, false otherwise"," * @method getDrop"," * @param {String/Object} node The Node instance or Selector string to check for a valid Drop Object"," * @return {Object}"," */"," getDrop: function(node) {"," var drop = false,"," n = Y.one(node);"," if (n instanceof Y.Node) {"," Y.Array.each(this.targets, function(v) {"," if (n.compareTo(v.get('node'))) {"," drop = v;"," }"," });"," }"," return drop;"," }"," }, true);","","","","","}, '@VERSION@', {\"requires\": [\"dd-ddm\"]});","","}());"]}; + __coverage__['build/dd-ddm-drop/dd-ddm-drop.js'] = {"path":"build/dd-ddm-drop/dd-ddm-drop.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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0]},"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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":42}}},"2":{"name":"(anonymous_2)","line":35,"loc":{"start":{"line":35,"column":24},"end":{"line":35,"column":35}}},"3":{"name":"(anonymous_3)","line":47,"loc":{"start":{"line":47,"column":24},"end":{"line":47,"column":36}}},"4":{"name":"(anonymous_4)","line":56,"loc":{"start":{"line":56,"column":27},"end":{"line":56,"column":39}}},"5":{"name":"(anonymous_5)","line":58,"loc":{"start":{"line":58,"column":44},"end":{"line":58,"column":56}}},"6":{"name":"(anonymous_6)","line":71,"loc":{"start":{"line":71,"column":25},"end":{"line":71,"column":41}}},"7":{"name":"(anonymous_7)","line":72,"loc":{"start":{"line":72,"column":29},"end":{"line":72,"column":45}}},"8":{"name":"(anonymous_8)","line":74,"loc":{"start":{"line":74,"column":36},"end":{"line":74,"column":48}}},"9":{"name":"(anonymous_9)","line":145,"loc":{"start":{"line":145,"column":19},"end":{"line":145,"column":34}}},"10":{"name":"(anonymous_10)","line":156,"loc":{"start":{"line":156,"column":22},"end":{"line":156,"column":37}}},"11":{"name":"(anonymous_11)","line":158,"loc":{"start":{"line":158,"column":42},"end":{"line":158,"column":54}}},"12":{"name":"(anonymous_12)","line":173,"loc":{"start":{"line":173,"column":22},"end":{"line":173,"column":37}}},"13":{"name":"(anonymous_13)","line":206,"loc":{"start":{"line":206,"column":20},"end":{"line":206,"column":31}}},"14":{"name":"(anonymous_14)","line":216,"loc":{"start":{"line":216,"column":26},"end":{"line":216,"column":37}}},"15":{"name":"(anonymous_15)","line":219,"loc":{"start":{"line":219,"column":39},"end":{"line":219,"column":51}}},"16":{"name":"(anonymous_16)","line":235,"loc":{"start":{"line":235,"column":22},"end":{"line":235,"column":43}}},"17":{"name":"(anonymous_17)","line":238,"loc":{"start":{"line":238,"column":33},"end":{"line":238,"column":45}}},"18":{"name":"(anonymous_18)","line":252,"loc":{"start":{"line":252,"column":37},"end":{"line":252,"column":49}}},"19":{"name":"(anonymous_19)","line":266,"loc":{"start":{"line":266,"column":28},"end":{"line":266,"column":39}}},"20":{"name":"(anonymous_20)","line":294,"loc":{"start":{"line":294,"column":39},"end":{"line":294,"column":51}}},"21":{"name":"(anonymous_21)","line":303,"loc":{"start":{"line":303,"column":19},"end":{"line":303,"column":30}}},"22":{"name":"(anonymous_22)","line":307,"loc":{"start":{"line":307,"column":47},"end":{"line":307,"column":59}}},"23":{"name":"(anonymous_23)","line":318,"loc":{"start":{"line":318,"column":17},"end":{"line":318,"column":28}}},"24":{"name":"(anonymous_24)","line":324,"loc":{"start":{"line":324,"column":42},"end":{"line":324,"column":54}}},"25":{"name":"(anonymous_25)","line":337,"loc":{"start":{"line":337,"column":27},"end":{"line":337,"column":38}}},"26":{"name":"(anonymous_26)","line":339,"loc":{"start":{"line":339,"column":32},"end":{"line":339,"column":44}}},"27":{"name":"(anonymous_27)","line":349,"loc":{"start":{"line":349,"column":20},"end":{"line":349,"column":32}}},"28":{"name":"(anonymous_28)","line":358,"loc":{"start":{"line":358,"column":22},"end":{"line":358,"column":37}}},"29":{"name":"(anonymous_29)","line":360,"loc":{"start":{"line":360,"column":39},"end":{"line":360,"column":51}}},"30":{"name":"(anonymous_30)","line":368,"loc":{"start":{"line":368,"column":42},"end":{"line":368,"column":54}}},"31":{"name":"(anonymous_31)","line":382,"loc":{"start":{"line":382,"column":17},"end":{"line":382,"column":32}}},"32":{"name":"(anonymous_32)","line":386,"loc":{"start":{"line":386,"column":43},"end":{"line":386,"column":55}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":399,"column":42}},"2":{"start":{"line":14,"column":4},"end":{"line":394,"column":13}},"3":{"start":{"line":36,"column":12},"end":{"line":38,"column":13}},"4":{"start":{"line":37,"column":16},"end":{"line":37,"column":28}},"5":{"start":{"line":39,"column":12},"end":{"line":39,"column":44}},"6":{"start":{"line":48,"column":12},"end":{"line":48,"column":38}},"7":{"start":{"line":57,"column":12},"end":{"line":57,"column":23}},"8":{"start":{"line":58,"column":12},"end":{"line":63,"column":15}},"9":{"start":{"line":59,"column":16},"end":{"line":61,"column":17}},"10":{"start":{"line":60,"column":20},"end":{"line":60,"column":30}},"11":{"start":{"line":64,"column":12},"end":{"line":64,"column":34}},"12":{"start":{"line":72,"column":12},"end":{"line":77,"column":22}},"13":{"start":{"line":73,"column":16},"end":{"line":73,"column":70}},"14":{"start":{"line":74,"column":16},"end":{"line":76,"column":25}},"15":{"start":{"line":75,"column":20},"end":{"line":75,"column":39}},"16":{"start":{"line":146,"column":12},"end":{"line":146,"column":39}},"17":{"start":{"line":147,"column":12},"end":{"line":147,"column":24}},"18":{"start":{"line":157,"column":12},"end":{"line":157,"column":27}},"19":{"start":{"line":158,"column":12},"end":{"line":162,"column":15}},"20":{"start":{"line":159,"column":16},"end":{"line":161,"column":17}},"21":{"start":{"line":160,"column":20},"end":{"line":160,"column":34}},"22":{"start":{"line":164,"column":12},"end":{"line":164,"column":36}},"23":{"start":{"line":165,"column":12},"end":{"line":165,"column":24}},"24":{"start":{"line":174,"column":12},"end":{"line":199,"column":13}},"25":{"start":{"line":175,"column":16},"end":{"line":176,"column":46}},"26":{"start":{"line":177,"column":16},"end":{"line":198,"column":17}},"27":{"start":{"line":178,"column":20},"end":{"line":178,"column":53}},"28":{"start":{"line":179,"column":20},"end":{"line":181,"column":21}},"29":{"start":{"line":180,"column":24},"end":{"line":180,"column":100}},"30":{"start":{"line":182,"column":20},"end":{"line":197,"column":21}},"31":{"start":{"line":183,"column":24},"end":{"line":186,"column":25}},"32":{"start":{"line":184,"column":28},"end":{"line":184,"column":71}},"33":{"start":{"line":185,"column":28},"end":{"line":185,"column":87}},"34":{"start":{"line":188,"column":24},"end":{"line":190,"column":25}},"35":{"start":{"line":189,"column":28},"end":{"line":189,"column":52}},"36":{"start":{"line":191,"column":24},"end":{"line":196,"column":49}},"37":{"start":{"line":200,"column":12},"end":{"line":200,"column":25}},"38":{"start":{"line":207,"column":12},"end":{"line":207,"column":33}},"39":{"start":{"line":208,"column":12},"end":{"line":208,"column":33}},"40":{"start":{"line":209,"column":12},"end":{"line":209,"column":35}},"41":{"start":{"line":217,"column":12},"end":{"line":217,"column":32}},"42":{"start":{"line":218,"column":12},"end":{"line":218,"column":30}},"43":{"start":{"line":219,"column":12},"end":{"line":224,"column":21}},"44":{"start":{"line":220,"column":16},"end":{"line":220,"column":36}},"45":{"start":{"line":221,"column":16},"end":{"line":223,"column":17}},"46":{"start":{"line":222,"column":20},"end":{"line":222,"column":41}},"47":{"start":{"line":225,"column":12},"end":{"line":225,"column":37}},"48":{"start":{"line":236,"column":12},"end":{"line":236,"column":46}},"49":{"start":{"line":238,"column":12},"end":{"line":248,"column":21}},"50":{"start":{"line":239,"column":16},"end":{"line":239,"column":85}},"51":{"start":{"line":240,"column":16},"end":{"line":240,"column":43}},"52":{"start":{"line":242,"column":16},"end":{"line":247,"column":17}},"53":{"start":{"line":243,"column":20},"end":{"line":246,"column":21}},"54":{"start":{"line":244,"column":24},"end":{"line":244,"column":42}},"55":{"start":{"line":245,"column":24},"end":{"line":245,"column":36}},"56":{"start":{"line":249,"column":12},"end":{"line":258,"column":13}},"57":{"start":{"line":250,"column":16},"end":{"line":250,"column":25}},"58":{"start":{"line":252,"column":16},"end":{"line":256,"column":25}},"59":{"start":{"line":253,"column":20},"end":{"line":255,"column":21}},"60":{"start":{"line":254,"column":24},"end":{"line":254,"column":36}},"61":{"start":{"line":257,"column":16},"end":{"line":257,"column":38}},"62":{"start":{"line":259,"column":12},"end":{"line":259,"column":27}},"63":{"start":{"line":267,"column":12},"end":{"line":269,"column":45}},"64":{"start":{"line":272,"column":12},"end":{"line":290,"column":13}},"65":{"start":{"line":273,"column":16},"end":{"line":281,"column":17}},"66":{"start":{"line":275,"column":20},"end":{"line":275,"column":44}},"67":{"start":{"line":276,"column":20},"end":{"line":276,"column":45}},"68":{"start":{"line":278,"column":20},"end":{"line":278,"column":67}},"69":{"start":{"line":279,"column":20},"end":{"line":279,"column":40}},"70":{"start":{"line":280,"column":20},"end":{"line":280,"column":35}},"71":{"start":{"line":282,"column":16},"end":{"line":282,"column":83}},"72":{"start":{"line":283,"column":16},"end":{"line":286,"column":17}},"73":{"start":{"line":284,"column":20},"end":{"line":284,"column":103}},"74":{"start":{"line":285,"column":20},"end":{"line":285,"column":108}},"75":{"start":{"line":287,"column":19},"end":{"line":290,"column":13}},"76":{"start":{"line":288,"column":16},"end":{"line":288,"column":83}},"77":{"start":{"line":289,"column":16},"end":{"line":289,"column":111}},"78":{"start":{"line":292,"column":12},"end":{"line":292,"column":35}},"79":{"start":{"line":294,"column":12},"end":{"line":296,"column":21}},"80":{"start":{"line":295,"column":16},"end":{"line":295,"column":38}},"81":{"start":{"line":304,"column":12},"end":{"line":310,"column":13}},"82":{"start":{"line":305,"column":16},"end":{"line":305,"column":41}},"83":{"start":{"line":307,"column":16},"end":{"line":309,"column":19}},"84":{"start":{"line":308,"column":20},"end":{"line":308,"column":46}},"85":{"start":{"line":319,"column":12},"end":{"line":321,"column":13}},"86":{"start":{"line":320,"column":16},"end":{"line":320,"column":39}},"87":{"start":{"line":322,"column":12},"end":{"line":322,"column":27}},"88":{"start":{"line":324,"column":12},"end":{"line":328,"column":15}},"89":{"start":{"line":325,"column":16},"end":{"line":327,"column":17}},"90":{"start":{"line":326,"column":20},"end":{"line":326,"column":34}},"91":{"start":{"line":329,"column":12},"end":{"line":329,"column":25}},"92":{"start":{"line":338,"column":12},"end":{"line":338,"column":39}},"93":{"start":{"line":339,"column":12},"end":{"line":341,"column":21}},"94":{"start":{"line":340,"column":16},"end":{"line":340,"column":44}},"95":{"start":{"line":350,"column":12},"end":{"line":350,"column":33}},"96":{"start":{"line":359,"column":12},"end":{"line":359,"column":37}},"97":{"start":{"line":360,"column":12},"end":{"line":364,"column":21}},"98":{"start":{"line":361,"column":16},"end":{"line":363,"column":17}},"99":{"start":{"line":362,"column":20},"end":{"line":362,"column":36}},"100":{"start":{"line":365,"column":12},"end":{"line":365,"column":35}},"101":{"start":{"line":367,"column":12},"end":{"line":367,"column":24}},"102":{"start":{"line":368,"column":12},"end":{"line":372,"column":15}},"103":{"start":{"line":369,"column":16},"end":{"line":371,"column":17}},"104":{"start":{"line":370,"column":20},"end":{"line":370,"column":35}},"105":{"start":{"line":374,"column":12},"end":{"line":374,"column":37}},"106":{"start":{"line":383,"column":12},"end":{"line":384,"column":32}},"107":{"start":{"line":385,"column":12},"end":{"line":391,"column":13}},"108":{"start":{"line":386,"column":16},"end":{"line":390,"column":19}},"109":{"start":{"line":387,"column":20},"end":{"line":389,"column":21}},"110":{"start":{"line":388,"column":24},"end":{"line":388,"column":33}},"111":{"start":{"line":392,"column":12},"end":{"line":392,"column":24}}},"branchMap":{"1":{"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}}]},"2":{"line":59,"type":"if","locations":[{"start":{"line":59,"column":16},"end":{"line":59,"column":16}},{"start":{"line":59,"column":16},"end":{"line":59,"column":16}}]},"3":{"line":73,"type":"cond-expr","locations":[{"start":{"line":73,"column":39},"end":{"line":73,"column":51}},{"start":{"line":73,"column":54},"end":{"line":73,"column":68}}]},"4":{"line":159,"type":"if","locations":[{"start":{"line":159,"column":16},"end":{"line":159,"column":16}},{"start":{"line":159,"column":16},"end":{"line":159,"column":16}}]},"5":{"line":174,"type":"if","locations":[{"start":{"line":174,"column":12},"end":{"line":174,"column":12}},{"start":{"line":174,"column":12},"end":{"line":174,"column":12}}]},"6":{"line":174,"type":"binary-expr","locations":[{"start":{"line":174,"column":16},"end":{"line":174,"column":31}},{"start":{"line":174,"column":35},"end":{"line":174,"column":39}}]},"7":{"line":177,"type":"if","locations":[{"start":{"line":177,"column":16},"end":{"line":177,"column":16}},{"start":{"line":177,"column":16},"end":{"line":177,"column":16}}]},"8":{"line":177,"type":"binary-expr","locations":[{"start":{"line":177,"column":20},"end":{"line":177,"column":22}},{"start":{"line":177,"column":26},"end":{"line":177,"column":41}}]},"9":{"line":179,"type":"if","locations":[{"start":{"line":179,"column":20},"end":{"line":179,"column":20}},{"start":{"line":179,"column":20},"end":{"line":179,"column":20}}]},"10":{"line":182,"type":"if","locations":[{"start":{"line":182,"column":20},"end":{"line":182,"column":20}},{"start":{"line":182,"column":20},"end":{"line":182,"column":20}}]},"11":{"line":182,"type":"binary-expr","locations":[{"start":{"line":182,"column":24},"end":{"line":182,"column":28}},{"start":{"line":182,"column":32},"end":{"line":182,"column":41}}]},"12":{"line":183,"type":"if","locations":[{"start":{"line":183,"column":24},"end":{"line":183,"column":24}},{"start":{"line":183,"column":24},"end":{"line":183,"column":24}}]},"13":{"line":183,"type":"binary-expr","locations":[{"start":{"line":183,"column":29},"end":{"line":183,"column":53}},{"start":{"line":183,"column":58},"end":{"line":183,"column":70}}]},"14":{"line":184,"type":"binary-expr","locations":[{"start":{"line":184,"column":32},"end":{"line":184,"column":39}},{"start":{"line":184,"column":43},"end":{"line":184,"column":70}}]},"15":{"line":188,"type":"if","locations":[{"start":{"line":188,"column":24},"end":{"line":188,"column":24}},{"start":{"line":188,"column":24},"end":{"line":188,"column":24}}]},"16":{"line":221,"type":"if","locations":[{"start":{"line":221,"column":16},"end":{"line":221,"column":16}},{"start":{"line":221,"column":16},"end":{"line":221,"column":16}}]},"17":{"line":242,"type":"if","locations":[{"start":{"line":242,"column":16},"end":{"line":242,"column":16}},{"start":{"line":242,"column":16},"end":{"line":242,"column":16}}]},"18":{"line":243,"type":"if","locations":[{"start":{"line":243,"column":20},"end":{"line":243,"column":20}},{"start":{"line":243,"column":20},"end":{"line":243,"column":20}}]},"19":{"line":249,"type":"if","locations":[{"start":{"line":249,"column":12},"end":{"line":249,"column":12}},{"start":{"line":249,"column":12},"end":{"line":249,"column":12}}]},"20":{"line":253,"type":"if","locations":[{"start":{"line":253,"column":20},"end":{"line":253,"column":20}},{"start":{"line":253,"column":20},"end":{"line":253,"column":20}}]},"21":{"line":272,"type":"if","locations":[{"start":{"line":272,"column":12},"end":{"line":272,"column":12}},{"start":{"line":272,"column":12},"end":{"line":272,"column":12}}]},"22":{"line":272,"type":"binary-expr","locations":[{"start":{"line":272,"column":16},"end":{"line":272,"column":26}},{"start":{"line":272,"column":30},"end":{"line":272,"column":40}},{"start":{"line":272,"column":44},"end":{"line":272,"column":71}}]},"23":{"line":273,"type":"if","locations":[{"start":{"line":273,"column":16},"end":{"line":273,"column":16}},{"start":{"line":273,"column":16},"end":{"line":273,"column":16}}]},"24":{"line":283,"type":"if","locations":[{"start":{"line":283,"column":16},"end":{"line":283,"column":16}},{"start":{"line":283,"column":16},"end":{"line":283,"column":16}}]},"25":{"line":287,"type":"if","locations":[{"start":{"line":287,"column":19},"end":{"line":287,"column":19}},{"start":{"line":287,"column":19},"end":{"line":287,"column":19}}]},"26":{"line":287,"type":"binary-expr","locations":[{"start":{"line":287,"column":23},"end":{"line":287,"column":33}},{"start":{"line":287,"column":37},"end":{"line":287,"column":63}}]},"27":{"line":304,"type":"if","locations":[{"start":{"line":304,"column":12},"end":{"line":304,"column":12}},{"start":{"line":304,"column":12},"end":{"line":304,"column":12}}]},"28":{"line":319,"type":"if","locations":[{"start":{"line":319,"column":12},"end":{"line":319,"column":12}},{"start":{"line":319,"column":12},"end":{"line":319,"column":12}}]},"29":{"line":319,"type":"binary-expr","locations":[{"start":{"line":319,"column":16},"end":{"line":319,"column":29}},{"start":{"line":319,"column":33},"end":{"line":319,"column":45}}]},"30":{"line":325,"type":"if","locations":[{"start":{"line":325,"column":16},"end":{"line":325,"column":16}},{"start":{"line":325,"column":16},"end":{"line":325,"column":16}}]},"31":{"line":325,"type":"binary-expr","locations":[{"start":{"line":325,"column":20},"end":{"line":325,"column":26}},{"start":{"line":325,"column":30},"end":{"line":325,"column":70}}]},"32":{"line":361,"type":"if","locations":[{"start":{"line":361,"column":16},"end":{"line":361,"column":16}},{"start":{"line":361,"column":16},"end":{"line":361,"column":16}}]},"33":{"line":369,"type":"if","locations":[{"start":{"line":369,"column":16},"end":{"line":369,"column":16}},{"start":{"line":369,"column":16},"end":{"line":369,"column":16}}]},"34":{"line":385,"type":"if","locations":[{"start":{"line":385,"column":12},"end":{"line":385,"column":12}},{"start":{"line":385,"column":12},"end":{"line":385,"column":12}}]},"35":{"line":387,"type":"if","locations":[{"start":{"line":387,"column":20},"end":{"line":387,"column":20}},{"start":{"line":387,"column":20},"end":{"line":387,"column":20}}]}},"code":["(function () { YUI.add('dd-ddm-drop', function (Y, NAME) {","",""," /**"," * Extends the dd-ddm Class to add support for the placement of Drop Target"," * shims inside the viewport shim. It also handles all Drop Target related events and interactions."," * @module dd"," * @submodule dd-ddm-drop"," * @for DDM"," * @namespace DD"," */",""," //TODO CSS class name for the bestMatch.."," Y.mix(Y.DD.DDM, {"," /**"," * This flag turns off the use of the mouseover/mouseout shim. It should not be used unless you know what you are doing."," * @private"," * @property _noShim"," * @type {Boolean}"," */"," _noShim: false,"," /**"," * Placeholder for all active shims on the page"," * @private"," * @property _activeShims"," * @type {Array}"," */"," _activeShims: [],"," /**"," * This method checks the _activeShims Object to see if there is a shim active."," * @private"," * @method _hasActiveShim"," * @return {Boolean}"," */"," _hasActiveShim: function() {"," if (this._noShim) {"," return true;"," }"," return this._activeShims.length;"," },"," /**"," * Adds a Drop Target to the list of active shims"," * @private"," * @method _addActiveShim"," * @param {Object} d The Drop instance to add to the list."," */"," _addActiveShim: function(d) {"," this._activeShims.push(d);"," },"," /**"," * Removes a Drop Target to the list of active shims"," * @private"," * @method _removeActiveShim"," * @param {Object} d The Drop instance to remove from the list."," */"," _removeActiveShim: function(d) {"," var s = [];"," Y.Array.each(this._activeShims, function(v) {"," if (v._yuid !== d._yuid) {"," s.push(v);"," }",""," });"," this._activeShims = s;"," },"," /**"," * This method will sync the position of the shims on the Drop Targets that are currently active."," * @method syncActiveShims"," * @param {Boolean} force Resize/sync all Targets."," */"," syncActiveShims: function(force) {"," Y.later(0, this, function(force) {"," var drops = ((force) ? this.targets : this._lookup());"," Y.Array.each(drops, function(v) {"," v.sizeShim.call(v);"," }, this);"," }, force);"," },"," /**"," * The mode that the drag operations will run in 0 for Point, 1 for Intersect, 2 for Strict"," * @private"," * @property mode"," * @type Number"," */"," mode: 0,"," /**"," * In point mode, a Drop is targeted by the cursor being over the Target"," * @private"," * @property POINT"," * @type Number"," */"," POINT: 0,"," /**"," * In intersect mode, a Drop is targeted by \"part\" of the drag node being over the Target"," * @private"," * @property INTERSECT"," * @type Number"," */"," INTERSECT: 1,"," /**"," * In strict mode, a Drop is targeted by the \"entire\" drag node being over the Target"," * @private"," * @property STRICT"," * @type Number"," */"," STRICT: 2,"," /**"," * Should we only check targets that are in the viewport on drags (for performance), default: true"," * @property useHash"," * @type {Boolean}"," */"," useHash: true,"," /**"," * A reference to the active Drop Target"," * @property activeDrop"," * @type {Object}"," */"," activeDrop: null,"," /**"," * An array of the valid Drop Targets for this interaction."," * @property validDrops"," * @type {Array}"," */"," //TODO Change array/object literals to be in sync.."," validDrops: [],"," /**"," * An object literal of Other Drop Targets that we encountered during this interaction (in the case of overlapping Drop Targets)"," * @property otherDrops"," * @type {Object}"," */"," otherDrops: {},"," /**"," * All of the Targets"," * @property targets"," * @type {Array}"," */"," targets: [],"," /**"," * Add a Drop Target to the list of Valid Targets. This list get's regenerated on each new drag operation."," * @private"," * @method _addValid"," * @param {Object} drop"," * @chainable"," */"," _addValid: function(drop) {"," this.validDrops.push(drop);"," return this;"," },"," /**"," * Removes a Drop Target from the list of Valid Targets. This list get's regenerated on each new drag operation."," * @private"," * @method _removeValid"," * @param {Object} drop"," * @chainable"," */"," _removeValid: function(drop) {"," var drops = [];"," Y.Array.each(this.validDrops, function(v) {"," if (v !== drop) {"," drops.push(v);"," }"," });",""," this.validDrops = drops;"," return this;"," },"," /**"," * Check to see if the Drag element is over the target, method varies on current mode"," * @method isOverTarget"," * @param {Object} drop The drop to check against"," * @return {Boolean}"," */"," isOverTarget: function(drop) {"," if (this.activeDrag && drop) {"," var xy = this.activeDrag.mouseXY, r, dMode = this.activeDrag.get('dragMode'),"," aRegion, node = drop.shim;"," if (xy && this.activeDrag) {"," aRegion = this.activeDrag.region;"," if (dMode === this.STRICT) {"," return this.activeDrag.get('dragNode').inRegion(drop.region, true, aRegion);"," }"," if (drop && drop.shim) {"," if ((dMode === this.INTERSECT) && this._noShim) {"," r = aRegion || this.activeDrag.get('node');"," return drop.get('node').intersect(r, drop.region).inRegion;"," }",""," if (this._noShim) {"," node = drop.get('node');"," }"," return node.intersect({"," top: xy[1],"," bottom: xy[1],"," left: xy[0],"," right: xy[0]"," }, drop.region).inRegion;"," }"," }"," }"," return false;"," },"," /**"," * Clears the cache data used for this interaction."," * @method clearCache"," */"," clearCache: function() {"," this.validDrops = [];"," this.otherDrops = {};"," this._activeShims = [];"," },"," /**"," * Clear the cache and activate the shims of all the targets"," * @private"," * @method _activateTargets"," */"," _activateTargets: function() {"," this._noShim = true;"," this.clearCache();"," Y.Array.each(this.targets, function(v) {"," v._activateShim([]);"," if (v.get('noShim') === true) {"," this._noShim = false;"," }"," }, this);"," this._handleTargetOver();",""," },"," /**"," * This method will gather the area for all potential targets and see which has the hightest covered area and return it."," * @method getBestMatch"," * @param {Array} drops An Array of drops to scan for the best match."," * @param {Boolean} all If present, it returns an Array. First item is best match, second is an Array of the other items in the original Array."," * @return {Object or Array}"," */"," getBestMatch: function(drops, all) {"," var biggest = null, area = 0, out;",""," Y.Object.each(drops, function(v) {"," var inter = this.activeDrag.get('dragNode').intersect(v.get('node'));"," v.region.area = inter.area;",""," if (inter.inRegion) {"," if (inter.area > area) {"," area = inter.area;"," biggest = v;"," }"," }"," }, this);"," if (all) {"," out = [];"," //TODO Sort the others in numeric order by area covered.."," Y.Object.each(drops, function(v) {"," if (v !== biggest) {"," out.push(v);"," }"," }, this);"," return [biggest, out];"," }"," return biggest;"," },"," /**"," * This method fires the drop:hit, drag:drophit, drag:dropmiss methods and deactivates the shims.."," * @private"," * @method _deactivateTargets"," */"," _deactivateTargets: function() {"," var other = [], tmp,"," activeDrag = this.activeDrag,"," activeDrop = this.activeDrop;",""," //TODO why is this check so hard??"," if (activeDrag && activeDrop && this.otherDrops[activeDrop]) {"," if (!activeDrag.get('dragMode')) {"," //TODO otherDrops -- private.."," other = this.otherDrops;"," delete other[activeDrop];"," } else {"," tmp = this.getBestMatch(this.otherDrops, true);"," activeDrop = tmp[0];"," other = tmp[1];"," }"," activeDrag.get('node').removeClass(this.CSS_PREFIX + '-drag-over');"," if (activeDrop) {"," activeDrop.fire('drop:hit', { drag: activeDrag, drop: activeDrop, others: other });"," activeDrag.fire('drag:drophit', { drag: activeDrag, drop: activeDrop, others: other });"," }"," } else if (activeDrag && activeDrag.get('dragging')) {"," activeDrag.get('node').removeClass(this.CSS_PREFIX + '-drag-over');"," activeDrag.fire('drag:dropmiss', { pageX: activeDrag.lastXY[0], pageY: activeDrag.lastXY[1] });"," }",""," this.activeDrop = null;",""," Y.Array.each(this.targets, function(v) {"," v._deactivateShim([]);"," }, this);"," },"," /**"," * This method is called when the move method is called on the Drag Object."," * @private"," * @method _dropMove"," */"," _dropMove: function() {"," if (this._hasActiveShim()) {"," this._handleTargetOver();"," } else {"," Y.Object.each(this.otherDrops, function(v) {"," v._handleOut.apply(v, []);"," });"," }"," },"," /**"," * Filters the list of Drops down to those in the viewport."," * @private"," * @method _lookup"," * @return {Array} The valid Drop Targets that are in the viewport."," */"," _lookup: function() {"," if (!this.useHash || this._noShim) {"," return this.validDrops;"," }"," var drops = [];"," //Only scan drop shims that are in the Viewport"," Y.Array.each(this.validDrops, function(v) {"," if (v.shim && v.shim.inViewportRegion(false, v.region)) {"," drops.push(v);"," }"," });"," return drops;",""," },"," /**"," * This method execs _handleTargetOver on all valid Drop Targets"," * @private"," * @method _handleTargetOver"," */"," _handleTargetOver: function() {"," var drops = this._lookup();"," Y.Array.each(drops, function(v) {"," v._handleTargetOver.call(v);"," }, this);"," },"," /**"," * Add the passed in Target to the targets collection"," * @private"," * @method _regTarget"," * @param {Object} t The Target to add to the targets collection"," */"," _regTarget: function(t) {"," this.targets.push(t);"," },"," /**"," * Remove the passed in Target from the targets collection"," * @private"," * @method _unregTarget"," * @param {Object} drop The Target to remove from the targets collection"," */"," _unregTarget: function(drop) {"," var targets = [], vdrops;"," Y.Array.each(this.targets, function(v) {"," if (v !== drop) {"," targets.push(v);"," }"," }, this);"," this.targets = targets;",""," vdrops = [];"," Y.Array.each(this.validDrops, function(v) {"," if (v !== drop) {"," vdrops.push(v);"," }"," });",""," this.validDrops = vdrops;"," },"," /**"," * Get a valid Drop instance back from a Node or a selector string, false otherwise"," * @method getDrop"," * @param {String/Object} node The Node instance or Selector string to check for a valid Drop Object"," * @return {Object}"," */"," getDrop: function(node) {"," var drop = false,"," n = Y.one(node);"," if (n instanceof Y.Node) {"," Y.Array.each(this.targets, function(v) {"," if (n.compareTo(v.get('node'))) {"," drop = v;"," }"," });"," }"," return drop;"," }"," }, true);","","","","","}, '@VERSION@', {\"requires\": [\"dd-ddm\"]});","","}());"]}; } var __cov_o$ssUG$Zx$_5NVajDettpw = __coverage__['build/dd-ddm-drop/dd-ddm-drop.js']; -__cov_o$ssUG$Zx$_5NVajDettpw.s['1']++;YUI.add('dd-ddm-drop',function(Y,NAME){__cov_o$ssUG$Zx$_5NVajDettpw.f['1']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['2']++;Y.mix(Y.DD.DDM,{_noShim:false,_activeShims:[],_hasActiveShim:function(){__cov_o$ssUG$Zx$_5NVajDettpw.f['2']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['3']++;if(this._noShim){__cov_o$ssUG$Zx$_5NVajDettpw.b['1'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['4']++;return true;}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['1'][1]++;}__cov_o$ssUG$Zx$_5NVajDettpw.s['5']++;return this._activeShims.length;},_addActiveShim:function(d){__cov_o$ssUG$Zx$_5NVajDettpw.f['3']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['6']++;this._activeShims.push(d);},_removeActiveShim:function(d){__cov_o$ssUG$Zx$_5NVajDettpw.f['4']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['7']++;var s=[];__cov_o$ssUG$Zx$_5NVajDettpw.s['8']++;Y.Array.each(this._activeShims,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['5']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['9']++;if(v._yuid!==d._yuid){__cov_o$ssUG$Zx$_5NVajDettpw.b['2'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['10']++;s.push(v);}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['2'][1]++;}});__cov_o$ssUG$Zx$_5NVajDettpw.s['11']++;this._activeShims=s;},syncActiveShims:function(force){__cov_o$ssUG$Zx$_5NVajDettpw.f['6']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['12']++;Y.later(0,this,function(force){__cov_o$ssUG$Zx$_5NVajDettpw.f['7']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['13']++;var drops=force?(__cov_o$ssUG$Zx$_5NVajDettpw.b['3'][0]++,this.targets):(__cov_o$ssUG$Zx$_5NVajDettpw.b['3'][1]++,this._lookup());__cov_o$ssUG$Zx$_5NVajDettpw.s['14']++;Y.Array.each(drops,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['8']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['15']++;v.sizeShim.call(v);},this);},force);},mode:0,POINT:0,INTERSECT:1,STRICT:2,useHash:true,activeDrop:null,validDrops:[],otherDrops:{},targets:[],_addValid:function(drop){__cov_o$ssUG$Zx$_5NVajDettpw.f['9']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['16']++;this.validDrops.push(drop);__cov_o$ssUG$Zx$_5NVajDettpw.s['17']++;return this;},_removeValid:function(drop){__cov_o$ssUG$Zx$_5NVajDettpw.f['10']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['18']++;var drops=[];__cov_o$ssUG$Zx$_5NVajDettpw.s['19']++;Y.Array.each(this.validDrops,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['11']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['20']++;if(v!==drop){__cov_o$ssUG$Zx$_5NVajDettpw.b['4'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['21']++;drops.push(v);}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['4'][1]++;}});__cov_o$ssUG$Zx$_5NVajDettpw.s['22']++;this.validDrops=drops;__cov_o$ssUG$Zx$_5NVajDettpw.s['23']++;return this;},isOverTarget:function(drop){__cov_o$ssUG$Zx$_5NVajDettpw.f['12']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['24']++;if((__cov_o$ssUG$Zx$_5NVajDettpw.b['6'][0]++,this.activeDrag)&&(__cov_o$ssUG$Zx$_5NVajDettpw.b['6'][1]++,drop)){__cov_o$ssUG$Zx$_5NVajDettpw.b['5'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['25']++;var xy=this.activeDrag.mouseXY,r,dMode=this.activeDrag.get('dragMode'),aRegion,node=drop.shim;__cov_o$ssUG$Zx$_5NVajDettpw.s['26']++;if((__cov_o$ssUG$Zx$_5NVajDettpw.b['8'][0]++,xy)&&(__cov_o$ssUG$Zx$_5NVajDettpw.b['8'][1]++,this.activeDrag)){__cov_o$ssUG$Zx$_5NVajDettpw.b['7'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['27']++;aRegion=this.activeDrag.region;__cov_o$ssUG$Zx$_5NVajDettpw.s['28']++;if(dMode===this.STRICT){__cov_o$ssUG$Zx$_5NVajDettpw.b['9'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['29']++;return this.activeDrag.get('dragNode').inRegion(drop.region,true,aRegion);}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['9'][1]++;}__cov_o$ssUG$Zx$_5NVajDettpw.s['30']++;if((__cov_o$ssUG$Zx$_5NVajDettpw.b['11'][0]++,drop)&&(__cov_o$ssUG$Zx$_5NVajDettpw.b['11'][1]++,drop.shim)){__cov_o$ssUG$Zx$_5NVajDettpw.b['10'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['31']++;if((__cov_o$ssUG$Zx$_5NVajDettpw.b['13'][0]++,dMode===this.INTERSECT)&&(__cov_o$ssUG$Zx$_5NVajDettpw.b['13'][1]++,this._noShim)){__cov_o$ssUG$Zx$_5NVajDettpw.b['12'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['32']++;r=(__cov_o$ssUG$Zx$_5NVajDettpw.b['14'][0]++,aRegion)||(__cov_o$ssUG$Zx$_5NVajDettpw.b['14'][1]++,this.activeDrag.get('node'));__cov_o$ssUG$Zx$_5NVajDettpw.s['33']++;return drop.get('node').intersect(r,drop.region).inRegion;}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['12'][1]++;}__cov_o$ssUG$Zx$_5NVajDettpw.s['34']++;if(this._noShim){__cov_o$ssUG$Zx$_5NVajDettpw.b['15'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['35']++;node=drop.get('node');}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['15'][1]++;}__cov_o$ssUG$Zx$_5NVajDettpw.s['36']++;return node.intersect({top:xy[1],bottom:xy[1],left:xy[0],right:xy[0]},drop.region).inRegion;}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['10'][1]++;}}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['7'][1]++;}}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['5'][1]++;}__cov_o$ssUG$Zx$_5NVajDettpw.s['37']++;return false;},clearCache:function(){__cov_o$ssUG$Zx$_5NVajDettpw.f['13']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['38']++;this.validDrops=[];__cov_o$ssUG$Zx$_5NVajDettpw.s['39']++;this.otherDrops={};__cov_o$ssUG$Zx$_5NVajDettpw.s['40']++;this._activeShims=[];},_activateTargets:function(){__cov_o$ssUG$Zx$_5NVajDettpw.f['14']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['41']++;this._noShim=true;__cov_o$ssUG$Zx$_5NVajDettpw.s['42']++;this.clearCache();__cov_o$ssUG$Zx$_5NVajDettpw.s['43']++;Y.Array.each(this.targets,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['15']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['44']++;v._activateShim([]);__cov_o$ssUG$Zx$_5NVajDettpw.s['45']++;if(v.get('noShim')===true){__cov_o$ssUG$Zx$_5NVajDettpw.b['16'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['46']++;this._noShim=false;}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['16'][1]++;}},this);__cov_o$ssUG$Zx$_5NVajDettpw.s['47']++;this._handleTargetOver();},getBestMatch:function(drops,all){__cov_o$ssUG$Zx$_5NVajDettpw.f['16']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['48']++;var biggest=null,area=0,out;__cov_o$ssUG$Zx$_5NVajDettpw.s['49']++;Y.Array.each(drops,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['17']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['50']++;var inter=this.activeDrag.get('dragNode').intersect(v.get('node'));__cov_o$ssUG$Zx$_5NVajDettpw.s['51']++;v.region.area=inter.area;__cov_o$ssUG$Zx$_5NVajDettpw.s['52']++;if(inter.inRegion){__cov_o$ssUG$Zx$_5NVajDettpw.b['17'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['53']++;if(inter.area>area){__cov_o$ssUG$Zx$_5NVajDettpw.b['18'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['54']++;area=inter.area;__cov_o$ssUG$Zx$_5NVajDettpw.s['55']++;biggest=v;}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['18'][1]++;}}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['17'][1]++;}},this);__cov_o$ssUG$Zx$_5NVajDettpw.s['56']++;if(all){__cov_o$ssUG$Zx$_5NVajDettpw.b['19'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['57']++;out=[];__cov_o$ssUG$Zx$_5NVajDettpw.s['58']++;Y.Array.each(drops,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['18']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['59']++;if(v!==biggest){__cov_o$ssUG$Zx$_5NVajDettpw.b['20'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['60']++;out.push(v);}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['20'][1]++;}},this);__cov_o$ssUG$Zx$_5NVajDettpw.s['61']++;return[biggest,out];}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['19'][1]++;}__cov_o$ssUG$Zx$_5NVajDettpw.s['62']++;return biggest;},_deactivateTargets:function(){__cov_o$ssUG$Zx$_5NVajDettpw.f['19']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['63']++;var other=[],tmp,activeDrag=this.activeDrag,activeDrop=this.activeDrop;__cov_o$ssUG$Zx$_5NVajDettpw.s['64']++;if((__cov_o$ssUG$Zx$_5NVajDettpw.b['22'][0]++,activeDrag)&&(__cov_o$ssUG$Zx$_5NVajDettpw.b['22'][1]++,activeDrop)&&(__cov_o$ssUG$Zx$_5NVajDettpw.b['22'][2]++,this.otherDrops[activeDrop])){__cov_o$ssUG$Zx$_5NVajDettpw.b['21'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['65']++;if(!activeDrag.get('dragMode')){__cov_o$ssUG$Zx$_5NVajDettpw.b['23'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['66']++;other=this.otherDrops;__cov_o$ssUG$Zx$_5NVajDettpw.s['67']++;delete other[activeDrop];}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['23'][1]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['68']++;tmp=this.getBestMatch(this.otherDrops,true);__cov_o$ssUG$Zx$_5NVajDettpw.s['69']++;activeDrop=tmp[0];__cov_o$ssUG$Zx$_5NVajDettpw.s['70']++;other=tmp[1];}__cov_o$ssUG$Zx$_5NVajDettpw.s['71']++;activeDrag.get('node').removeClass(this.CSS_PREFIX+'-drag-over');__cov_o$ssUG$Zx$_5NVajDettpw.s['72']++;if(activeDrop){__cov_o$ssUG$Zx$_5NVajDettpw.b['24'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['73']++;activeDrop.fire('drop:hit',{drag:activeDrag,drop:activeDrop,others:other});__cov_o$ssUG$Zx$_5NVajDettpw.s['74']++;activeDrag.fire('drag:drophit',{drag:activeDrag,drop:activeDrop,others:other});}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['24'][1]++;}}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['21'][1]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['75']++;if((__cov_o$ssUG$Zx$_5NVajDettpw.b['26'][0]++,activeDrag)&&(__cov_o$ssUG$Zx$_5NVajDettpw.b['26'][1]++,activeDrag.get('dragging'))){__cov_o$ssUG$Zx$_5NVajDettpw.b['25'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['76']++;activeDrag.get('node').removeClass(this.CSS_PREFIX+'-drag-over');__cov_o$ssUG$Zx$_5NVajDettpw.s['77']++;activeDrag.fire('drag:dropmiss',{pageX:activeDrag.lastXY[0],pageY:activeDrag.lastXY[1]});}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['25'][1]++;}}__cov_o$ssUG$Zx$_5NVajDettpw.s['78']++;this.activeDrop=null;__cov_o$ssUG$Zx$_5NVajDettpw.s['79']++;Y.Array.each(this.targets,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['20']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['80']++;v._deactivateShim([]);},this);},_dropMove:function(){__cov_o$ssUG$Zx$_5NVajDettpw.f['21']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['81']++;if(this._hasActiveShim()){__cov_o$ssUG$Zx$_5NVajDettpw.b['27'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['82']++;this._handleTargetOver();}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['27'][1]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['83']++;Y.Array.each(this.otherDrops,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['22']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['84']++;v._handleOut.apply(v,[]);});}},_lookup:function(){__cov_o$ssUG$Zx$_5NVajDettpw.f['23']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['85']++;if((__cov_o$ssUG$Zx$_5NVajDettpw.b['29'][0]++,!this.useHash)||(__cov_o$ssUG$Zx$_5NVajDettpw.b['29'][1]++,this._noShim)){__cov_o$ssUG$Zx$_5NVajDettpw.b['28'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['86']++;return this.validDrops;}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['28'][1]++;}__cov_o$ssUG$Zx$_5NVajDettpw.s['87']++;var drops=[];__cov_o$ssUG$Zx$_5NVajDettpw.s['88']++;Y.Array.each(this.validDrops,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['24']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['89']++;if((__cov_o$ssUG$Zx$_5NVajDettpw.b['31'][0]++,v.shim)&&(__cov_o$ssUG$Zx$_5NVajDettpw.b['31'][1]++,v.shim.inViewportRegion(false,v.region))){__cov_o$ssUG$Zx$_5NVajDettpw.b['30'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['90']++;drops.push(v);}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['30'][1]++;}});__cov_o$ssUG$Zx$_5NVajDettpw.s['91']++;return drops;},_handleTargetOver:function(){__cov_o$ssUG$Zx$_5NVajDettpw.f['25']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['92']++;var drops=this._lookup();__cov_o$ssUG$Zx$_5NVajDettpw.s['93']++;Y.Array.each(drops,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['26']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['94']++;v._handleTargetOver.call(v);},this);},_regTarget:function(t){__cov_o$ssUG$Zx$_5NVajDettpw.f['27']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['95']++;this.targets.push(t);},_unregTarget:function(drop){__cov_o$ssUG$Zx$_5NVajDettpw.f['28']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['96']++;var targets=[],vdrops;__cov_o$ssUG$Zx$_5NVajDettpw.s['97']++;Y.Array.each(this.targets,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['29']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['98']++;if(v!==drop){__cov_o$ssUG$Zx$_5NVajDettpw.b['32'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['99']++;targets.push(v);}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['32'][1]++;}},this);__cov_o$ssUG$Zx$_5NVajDettpw.s['100']++;this.targets=targets;__cov_o$ssUG$Zx$_5NVajDettpw.s['101']++;vdrops=[];__cov_o$ssUG$Zx$_5NVajDettpw.s['102']++;Y.Array.each(this.validDrops,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['30']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['103']++;if(v!==drop){__cov_o$ssUG$Zx$_5NVajDettpw.b['33'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['104']++;vdrops.push(v);}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['33'][1]++;}});__cov_o$ssUG$Zx$_5NVajDettpw.s['105']++;this.validDrops=vdrops;},getDrop:function(node){__cov_o$ssUG$Zx$_5NVajDettpw.f['31']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['106']++;var drop=false,n=Y.one(node);__cov_o$ssUG$Zx$_5NVajDettpw.s['107']++;if(n instanceof Y.Node){__cov_o$ssUG$Zx$_5NVajDettpw.b['34'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['108']++;Y.Array.each(this.targets,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['32']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['109']++;if(n.compareTo(v.get('node'))){__cov_o$ssUG$Zx$_5NVajDettpw.b['35'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['110']++;drop=v;}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['35'][1]++;}});}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['34'][1]++;}__cov_o$ssUG$Zx$_5NVajDettpw.s['111']++;return drop;}},true);},'@VERSION@',{'requires':['dd-ddm']}); +__cov_o$ssUG$Zx$_5NVajDettpw.s['1']++;YUI.add('dd-ddm-drop',function(Y,NAME){__cov_o$ssUG$Zx$_5NVajDettpw.f['1']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['2']++;Y.mix(Y.DD.DDM,{_noShim:false,_activeShims:[],_hasActiveShim:function(){__cov_o$ssUG$Zx$_5NVajDettpw.f['2']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['3']++;if(this._noShim){__cov_o$ssUG$Zx$_5NVajDettpw.b['1'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['4']++;return true;}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['1'][1]++;}__cov_o$ssUG$Zx$_5NVajDettpw.s['5']++;return this._activeShims.length;},_addActiveShim:function(d){__cov_o$ssUG$Zx$_5NVajDettpw.f['3']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['6']++;this._activeShims.push(d);},_removeActiveShim:function(d){__cov_o$ssUG$Zx$_5NVajDettpw.f['4']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['7']++;var s=[];__cov_o$ssUG$Zx$_5NVajDettpw.s['8']++;Y.Array.each(this._activeShims,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['5']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['9']++;if(v._yuid!==d._yuid){__cov_o$ssUG$Zx$_5NVajDettpw.b['2'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['10']++;s.push(v);}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['2'][1]++;}});__cov_o$ssUG$Zx$_5NVajDettpw.s['11']++;this._activeShims=s;},syncActiveShims:function(force){__cov_o$ssUG$Zx$_5NVajDettpw.f['6']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['12']++;Y.later(0,this,function(force){__cov_o$ssUG$Zx$_5NVajDettpw.f['7']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['13']++;var drops=force?(__cov_o$ssUG$Zx$_5NVajDettpw.b['3'][0]++,this.targets):(__cov_o$ssUG$Zx$_5NVajDettpw.b['3'][1]++,this._lookup());__cov_o$ssUG$Zx$_5NVajDettpw.s['14']++;Y.Array.each(drops,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['8']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['15']++;v.sizeShim.call(v);},this);},force);},mode:0,POINT:0,INTERSECT:1,STRICT:2,useHash:true,activeDrop:null,validDrops:[],otherDrops:{},targets:[],_addValid:function(drop){__cov_o$ssUG$Zx$_5NVajDettpw.f['9']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['16']++;this.validDrops.push(drop);__cov_o$ssUG$Zx$_5NVajDettpw.s['17']++;return this;},_removeValid:function(drop){__cov_o$ssUG$Zx$_5NVajDettpw.f['10']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['18']++;var drops=[];__cov_o$ssUG$Zx$_5NVajDettpw.s['19']++;Y.Array.each(this.validDrops,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['11']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['20']++;if(v!==drop){__cov_o$ssUG$Zx$_5NVajDettpw.b['4'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['21']++;drops.push(v);}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['4'][1]++;}});__cov_o$ssUG$Zx$_5NVajDettpw.s['22']++;this.validDrops=drops;__cov_o$ssUG$Zx$_5NVajDettpw.s['23']++;return this;},isOverTarget:function(drop){__cov_o$ssUG$Zx$_5NVajDettpw.f['12']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['24']++;if((__cov_o$ssUG$Zx$_5NVajDettpw.b['6'][0]++,this.activeDrag)&&(__cov_o$ssUG$Zx$_5NVajDettpw.b['6'][1]++,drop)){__cov_o$ssUG$Zx$_5NVajDettpw.b['5'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['25']++;var xy=this.activeDrag.mouseXY,r,dMode=this.activeDrag.get('dragMode'),aRegion,node=drop.shim;__cov_o$ssUG$Zx$_5NVajDettpw.s['26']++;if((__cov_o$ssUG$Zx$_5NVajDettpw.b['8'][0]++,xy)&&(__cov_o$ssUG$Zx$_5NVajDettpw.b['8'][1]++,this.activeDrag)){__cov_o$ssUG$Zx$_5NVajDettpw.b['7'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['27']++;aRegion=this.activeDrag.region;__cov_o$ssUG$Zx$_5NVajDettpw.s['28']++;if(dMode===this.STRICT){__cov_o$ssUG$Zx$_5NVajDettpw.b['9'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['29']++;return this.activeDrag.get('dragNode').inRegion(drop.region,true,aRegion);}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['9'][1]++;}__cov_o$ssUG$Zx$_5NVajDettpw.s['30']++;if((__cov_o$ssUG$Zx$_5NVajDettpw.b['11'][0]++,drop)&&(__cov_o$ssUG$Zx$_5NVajDettpw.b['11'][1]++,drop.shim)){__cov_o$ssUG$Zx$_5NVajDettpw.b['10'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['31']++;if((__cov_o$ssUG$Zx$_5NVajDettpw.b['13'][0]++,dMode===this.INTERSECT)&&(__cov_o$ssUG$Zx$_5NVajDettpw.b['13'][1]++,this._noShim)){__cov_o$ssUG$Zx$_5NVajDettpw.b['12'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['32']++;r=(__cov_o$ssUG$Zx$_5NVajDettpw.b['14'][0]++,aRegion)||(__cov_o$ssUG$Zx$_5NVajDettpw.b['14'][1]++,this.activeDrag.get('node'));__cov_o$ssUG$Zx$_5NVajDettpw.s['33']++;return drop.get('node').intersect(r,drop.region).inRegion;}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['12'][1]++;}__cov_o$ssUG$Zx$_5NVajDettpw.s['34']++;if(this._noShim){__cov_o$ssUG$Zx$_5NVajDettpw.b['15'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['35']++;node=drop.get('node');}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['15'][1]++;}__cov_o$ssUG$Zx$_5NVajDettpw.s['36']++;return node.intersect({top:xy[1],bottom:xy[1],left:xy[0],right:xy[0]},drop.region).inRegion;}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['10'][1]++;}}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['7'][1]++;}}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['5'][1]++;}__cov_o$ssUG$Zx$_5NVajDettpw.s['37']++;return false;},clearCache:function(){__cov_o$ssUG$Zx$_5NVajDettpw.f['13']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['38']++;this.validDrops=[];__cov_o$ssUG$Zx$_5NVajDettpw.s['39']++;this.otherDrops={};__cov_o$ssUG$Zx$_5NVajDettpw.s['40']++;this._activeShims=[];},_activateTargets:function(){__cov_o$ssUG$Zx$_5NVajDettpw.f['14']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['41']++;this._noShim=true;__cov_o$ssUG$Zx$_5NVajDettpw.s['42']++;this.clearCache();__cov_o$ssUG$Zx$_5NVajDettpw.s['43']++;Y.Array.each(this.targets,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['15']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['44']++;v._activateShim([]);__cov_o$ssUG$Zx$_5NVajDettpw.s['45']++;if(v.get('noShim')===true){__cov_o$ssUG$Zx$_5NVajDettpw.b['16'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['46']++;this._noShim=false;}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['16'][1]++;}},this);__cov_o$ssUG$Zx$_5NVajDettpw.s['47']++;this._handleTargetOver();},getBestMatch:function(drops,all){__cov_o$ssUG$Zx$_5NVajDettpw.f['16']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['48']++;var biggest=null,area=0,out;__cov_o$ssUG$Zx$_5NVajDettpw.s['49']++;Y.Object.each(drops,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['17']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['50']++;var inter=this.activeDrag.get('dragNode').intersect(v.get('node'));__cov_o$ssUG$Zx$_5NVajDettpw.s['51']++;v.region.area=inter.area;__cov_o$ssUG$Zx$_5NVajDettpw.s['52']++;if(inter.inRegion){__cov_o$ssUG$Zx$_5NVajDettpw.b['17'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['53']++;if(inter.area>area){__cov_o$ssUG$Zx$_5NVajDettpw.b['18'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['54']++;area=inter.area;__cov_o$ssUG$Zx$_5NVajDettpw.s['55']++;biggest=v;}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['18'][1]++;}}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['17'][1]++;}},this);__cov_o$ssUG$Zx$_5NVajDettpw.s['56']++;if(all){__cov_o$ssUG$Zx$_5NVajDettpw.b['19'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['57']++;out=[];__cov_o$ssUG$Zx$_5NVajDettpw.s['58']++;Y.Object.each(drops,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['18']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['59']++;if(v!==biggest){__cov_o$ssUG$Zx$_5NVajDettpw.b['20'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['60']++;out.push(v);}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['20'][1]++;}},this);__cov_o$ssUG$Zx$_5NVajDettpw.s['61']++;return[biggest,out];}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['19'][1]++;}__cov_o$ssUG$Zx$_5NVajDettpw.s['62']++;return biggest;},_deactivateTargets:function(){__cov_o$ssUG$Zx$_5NVajDettpw.f['19']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['63']++;var other=[],tmp,activeDrag=this.activeDrag,activeDrop=this.activeDrop;__cov_o$ssUG$Zx$_5NVajDettpw.s['64']++;if((__cov_o$ssUG$Zx$_5NVajDettpw.b['22'][0]++,activeDrag)&&(__cov_o$ssUG$Zx$_5NVajDettpw.b['22'][1]++,activeDrop)&&(__cov_o$ssUG$Zx$_5NVajDettpw.b['22'][2]++,this.otherDrops[activeDrop])){__cov_o$ssUG$Zx$_5NVajDettpw.b['21'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['65']++;if(!activeDrag.get('dragMode')){__cov_o$ssUG$Zx$_5NVajDettpw.b['23'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['66']++;other=this.otherDrops;__cov_o$ssUG$Zx$_5NVajDettpw.s['67']++;delete other[activeDrop];}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['23'][1]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['68']++;tmp=this.getBestMatch(this.otherDrops,true);__cov_o$ssUG$Zx$_5NVajDettpw.s['69']++;activeDrop=tmp[0];__cov_o$ssUG$Zx$_5NVajDettpw.s['70']++;other=tmp[1];}__cov_o$ssUG$Zx$_5NVajDettpw.s['71']++;activeDrag.get('node').removeClass(this.CSS_PREFIX+'-drag-over');__cov_o$ssUG$Zx$_5NVajDettpw.s['72']++;if(activeDrop){__cov_o$ssUG$Zx$_5NVajDettpw.b['24'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['73']++;activeDrop.fire('drop:hit',{drag:activeDrag,drop:activeDrop,others:other});__cov_o$ssUG$Zx$_5NVajDettpw.s['74']++;activeDrag.fire('drag:drophit',{drag:activeDrag,drop:activeDrop,others:other});}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['24'][1]++;}}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['21'][1]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['75']++;if((__cov_o$ssUG$Zx$_5NVajDettpw.b['26'][0]++,activeDrag)&&(__cov_o$ssUG$Zx$_5NVajDettpw.b['26'][1]++,activeDrag.get('dragging'))){__cov_o$ssUG$Zx$_5NVajDettpw.b['25'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['76']++;activeDrag.get('node').removeClass(this.CSS_PREFIX+'-drag-over');__cov_o$ssUG$Zx$_5NVajDettpw.s['77']++;activeDrag.fire('drag:dropmiss',{pageX:activeDrag.lastXY[0],pageY:activeDrag.lastXY[1]});}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['25'][1]++;}}__cov_o$ssUG$Zx$_5NVajDettpw.s['78']++;this.activeDrop=null;__cov_o$ssUG$Zx$_5NVajDettpw.s['79']++;Y.Array.each(this.targets,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['20']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['80']++;v._deactivateShim([]);},this);},_dropMove:function(){__cov_o$ssUG$Zx$_5NVajDettpw.f['21']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['81']++;if(this._hasActiveShim()){__cov_o$ssUG$Zx$_5NVajDettpw.b['27'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['82']++;this._handleTargetOver();}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['27'][1]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['83']++;Y.Object.each(this.otherDrops,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['22']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['84']++;v._handleOut.apply(v,[]);});}},_lookup:function(){__cov_o$ssUG$Zx$_5NVajDettpw.f['23']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['85']++;if((__cov_o$ssUG$Zx$_5NVajDettpw.b['29'][0]++,!this.useHash)||(__cov_o$ssUG$Zx$_5NVajDettpw.b['29'][1]++,this._noShim)){__cov_o$ssUG$Zx$_5NVajDettpw.b['28'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['86']++;return this.validDrops;}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['28'][1]++;}__cov_o$ssUG$Zx$_5NVajDettpw.s['87']++;var drops=[];__cov_o$ssUG$Zx$_5NVajDettpw.s['88']++;Y.Array.each(this.validDrops,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['24']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['89']++;if((__cov_o$ssUG$Zx$_5NVajDettpw.b['31'][0]++,v.shim)&&(__cov_o$ssUG$Zx$_5NVajDettpw.b['31'][1]++,v.shim.inViewportRegion(false,v.region))){__cov_o$ssUG$Zx$_5NVajDettpw.b['30'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['90']++;drops.push(v);}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['30'][1]++;}});__cov_o$ssUG$Zx$_5NVajDettpw.s['91']++;return drops;},_handleTargetOver:function(){__cov_o$ssUG$Zx$_5NVajDettpw.f['25']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['92']++;var drops=this._lookup();__cov_o$ssUG$Zx$_5NVajDettpw.s['93']++;Y.Array.each(drops,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['26']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['94']++;v._handleTargetOver.call(v);},this);},_regTarget:function(t){__cov_o$ssUG$Zx$_5NVajDettpw.f['27']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['95']++;this.targets.push(t);},_unregTarget:function(drop){__cov_o$ssUG$Zx$_5NVajDettpw.f['28']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['96']++;var targets=[],vdrops;__cov_o$ssUG$Zx$_5NVajDettpw.s['97']++;Y.Array.each(this.targets,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['29']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['98']++;if(v!==drop){__cov_o$ssUG$Zx$_5NVajDettpw.b['32'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['99']++;targets.push(v);}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['32'][1]++;}},this);__cov_o$ssUG$Zx$_5NVajDettpw.s['100']++;this.targets=targets;__cov_o$ssUG$Zx$_5NVajDettpw.s['101']++;vdrops=[];__cov_o$ssUG$Zx$_5NVajDettpw.s['102']++;Y.Array.each(this.validDrops,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['30']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['103']++;if(v!==drop){__cov_o$ssUG$Zx$_5NVajDettpw.b['33'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['104']++;vdrops.push(v);}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['33'][1]++;}});__cov_o$ssUG$Zx$_5NVajDettpw.s['105']++;this.validDrops=vdrops;},getDrop:function(node){__cov_o$ssUG$Zx$_5NVajDettpw.f['31']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['106']++;var drop=false,n=Y.one(node);__cov_o$ssUG$Zx$_5NVajDettpw.s['107']++;if(n instanceof Y.Node){__cov_o$ssUG$Zx$_5NVajDettpw.b['34'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['108']++;Y.Array.each(this.targets,function(v){__cov_o$ssUG$Zx$_5NVajDettpw.f['32']++;__cov_o$ssUG$Zx$_5NVajDettpw.s['109']++;if(n.compareTo(v.get('node'))){__cov_o$ssUG$Zx$_5NVajDettpw.b['35'][0]++;__cov_o$ssUG$Zx$_5NVajDettpw.s['110']++;drop=v;}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['35'][1]++;}});}else{__cov_o$ssUG$Zx$_5NVajDettpw.b['34'][1]++;}__cov_o$ssUG$Zx$_5NVajDettpw.s['111']++;return drop;}},true);},'@VERSION@',{'requires':['dd-ddm']}); diff --git a/build/dd-ddm-drop/dd-ddm-drop-debug.js b/build/dd-ddm-drop/dd-ddm-drop-debug.js index 2bb016b0715..ffd9564caf8 100644 --- a/build/dd-ddm-drop/dd-ddm-drop-debug.js +++ b/build/dd-ddm-drop/dd-ddm-drop-debug.js @@ -235,7 +235,7 @@ YUI.add('dd-ddm-drop', function (Y, NAME) { getBestMatch: function(drops, all) { var biggest = null, area = 0, out; - Y.Array.each(drops, function(v) { + Y.Object.each(drops, function(v) { var inter = this.activeDrag.get('dragNode').intersect(v.get('node')); v.region.area = inter.area; @@ -249,7 +249,7 @@ YUI.add('dd-ddm-drop', function (Y, NAME) { if (all) { out = []; //TODO Sort the others in numeric order by area covered.. - Y.Array.each(drops, function(v) { + Y.Object.each(drops, function(v) { if (v !== biggest) { out.push(v); } @@ -304,7 +304,7 @@ YUI.add('dd-ddm-drop', function (Y, NAME) { if (this._hasActiveShim()) { this._handleTargetOver(); } else { - Y.Array.each(this.otherDrops, function(v) { + Y.Object.each(this.otherDrops, function(v) { v._handleOut.apply(v, []); }); } diff --git a/build/dd-ddm-drop/dd-ddm-drop-min.js b/build/dd-ddm-drop/dd-ddm-drop-min.js index 0d196cbe00d..a1376102bcf 100644 --- a/build/dd-ddm-drop/dd-ddm-drop-min.js +++ b/build/dd-ddm-drop/dd-ddm-drop-min.js @@ -1 +1 @@ -YUI.add("dd-ddm-drop",function(e,t){e.mix(e.DD.DDM,{_noShim:!1,_activeShims:[],_hasActiveShim:function(){return this._noShim?!0:this._activeShims.length},_addActiveShim:function(e){this._activeShims.push(e)},_removeActiveShim:function(t){var n=[];e.Array.each(this._activeShims,function(e){e._yuid!==t._yuid&&n.push(e)}),this._activeShims=n},syncActiveShims:function(t){e.later(0,this,function(t){var n=t?this.targets:this._lookup();e.Array.each(n,function(e){e.sizeShim.call(e)},this)},t)},mode:0,POINT:0,INTERSECT:1,STRICT:2,useHash:!0,activeDrop:null,validDrops:[],otherDrops:{},targets:[],_addValid:function(e){return this.validDrops.push(e),this},_removeValid:function(t){var n=[];return e.Array.each(this.validDrops,function(e){e!==t&&n.push(e)}),this.validDrops=n,this},isOverTarget:function(e){if(this.activeDrag&&e){var t=this.activeDrag.mouseXY,n,r=this.activeDrag.get("dragMode"),i,s=e.shim;if(t&&this.activeDrag){i=this.activeDrag.region;if(r===this.STRICT)return this.activeDrag.get("dragNode").inRegion(e.region,!0,i);if(e&&e.shim)return r===this.INTERSECT&&this._noShim?(n=i||this.activeDrag.get("node"),e.get("node").intersect(n,e.region).inRegion):(this._noShim&&(s=e.get("node")),s.intersect({top:t[1],bottom:t[1],left:t[0],right:t[0]},e.region).inRegion)}}return!1},clearCache:function(){this.validDrops=[],this.otherDrops={},this._activeShims=[]},_activateTargets:function(){this._noShim=!0,this.clearCache(),e.Array.each(this.targets,function(e){e._activateShim([]),e.get("noShim")===!0&&(this._noShim=!1)},this),this._handleTargetOver()},getBestMatch:function(t,n){var r=null,i=0,s;return e.Array.each(t,function(e){var t=this.activeDrag.get("dragNode").intersect(e.get("node"));e.region.area=t.area,t.inRegion&&t.area>i&&(i=t.area,r=e)},this),n?(s=[],e.Array.each(t,function(e){e!==r&&s.push(e)},this),[r,s]):r},_deactivateTargets:function(){var t=[],n,r=this.activeDrag,i=this.activeDrop;r&&i&&this.otherDrops[i]?(r.get("dragMode")?(n=this.getBestMatch(this.otherDrops,!0),i=n[0],t=n[1]):(t=this.otherDrops,delete t[i]),r.get("node").removeClass(this.CSS_PREFIX+"-drag-over"),i&&(i.fire("drop:hit",{drag:r,drop:i,others:t}),r.fire("drag:drophit",{drag:r,drop:i,others:t}))):r&&r.get("dragging")&&(r.get("node").removeClass(this.CSS_PREFIX+"-drag-over"),r.fire("drag:dropmiss",{pageX:r.lastXY[0],pageY:r.lastXY[1]})),this.activeDrop=null,e.Array.each(this.targets,function(e){e._deactivateShim([])},this)},_dropMove:function(){this._hasActiveShim()?this._handleTargetOver():e.Array.each(this.otherDrops,function(e){e._handleOut.apply(e,[])})},_lookup:function(){if(!this.useHash||this._noShim)return this.validDrops;var t=[];return e.Array.each(this.validDrops,function(e){e.shim&&e.shim.inViewportRegion(!1,e.region)&&t.push(e)}),t},_handleTargetOver:function(){var t=this._lookup();e.Array.each(t,function(e){e._handleTargetOver.call(e)},this)},_regTarget:function(e){this.targets.push(e)},_unregTarget:function(t){var n=[],r;e.Array.each(this.targets,function(e){e!==t&&n.push(e)},this),this.targets=n,r=[],e.Array.each(this.validDrops,function(e){e!==t&&r.push(e)}),this.validDrops=r},getDrop:function(t){var n=!1,r=e.one(t);return r instanceof e.Node&&e.Array.each(this.targets,function(e){r.compareTo(e.get("node"))&&(n=e)}),n}},!0)},"@VERSION@",{requires:["dd-ddm"]}); +YUI.add("dd-ddm-drop",function(e,t){e.mix(e.DD.DDM,{_noShim:!1,_activeShims:[],_hasActiveShim:function(){return this._noShim?!0:this._activeShims.length},_addActiveShim:function(e){this._activeShims.push(e)},_removeActiveShim:function(t){var n=[];e.Array.each(this._activeShims,function(e){e._yuid!==t._yuid&&n.push(e)}),this._activeShims=n},syncActiveShims:function(t){e.later(0,this,function(t){var n=t?this.targets:this._lookup();e.Array.each(n,function(e){e.sizeShim.call(e)},this)},t)},mode:0,POINT:0,INTERSECT:1,STRICT:2,useHash:!0,activeDrop:null,validDrops:[],otherDrops:{},targets:[],_addValid:function(e){return this.validDrops.push(e),this},_removeValid:function(t){var n=[];return e.Array.each(this.validDrops,function(e){e!==t&&n.push(e)}),this.validDrops=n,this},isOverTarget:function(e){if(this.activeDrag&&e){var t=this.activeDrag.mouseXY,n,r=this.activeDrag.get("dragMode"),i,s=e.shim;if(t&&this.activeDrag){i=this.activeDrag.region;if(r===this.STRICT)return this.activeDrag.get("dragNode").inRegion(e.region,!0,i);if(e&&e.shim)return r===this.INTERSECT&&this._noShim?(n=i||this.activeDrag.get("node"),e.get("node").intersect(n,e.region).inRegion):(this._noShim&&(s=e.get("node")),s.intersect({top:t[1],bottom:t[1],left:t[0],right:t[0]},e.region).inRegion)}}return!1},clearCache:function(){this.validDrops=[],this.otherDrops={},this._activeShims=[]},_activateTargets:function(){this._noShim=!0,this.clearCache(),e.Array.each(this.targets,function(e){e._activateShim([]),e.get("noShim")===!0&&(this._noShim=!1)},this),this._handleTargetOver()},getBestMatch:function(t,n){var r=null,i=0,s;return e.Object.each(t,function(e){var t=this.activeDrag.get("dragNode").intersect(e.get("node"));e.region.area=t.area,t.inRegion&&t.area>i&&(i=t.area,r=e)},this),n?(s=[],e.Object.each(t,function(e){e!==r&&s.push(e)},this),[r,s]):r},_deactivateTargets:function(){var t=[],n,r=this.activeDrag,i=this.activeDrop;r&&i&&this.otherDrops[i]?(r.get("dragMode")?(n=this.getBestMatch(this.otherDrops,!0),i=n[0],t=n[1]):(t=this.otherDrops,delete t[i]),r.get("node").removeClass(this.CSS_PREFIX+"-drag-over"),i&&(i.fire("drop:hit",{drag:r,drop:i,others:t}),r.fire("drag:drophit",{drag:r,drop:i,others:t}))):r&&r.get("dragging")&&(r.get("node").removeClass(this.CSS_PREFIX+"-drag-over"),r.fire("drag:dropmiss",{pageX:r.lastXY[0],pageY:r.lastXY[1]})),this.activeDrop=null,e.Array.each(this.targets,function(e){e._deactivateShim([])},this)},_dropMove:function(){this._hasActiveShim()?this._handleTargetOver():e.Object.each(this.otherDrops,function(e){e._handleOut.apply(e,[])})},_lookup:function(){if(!this.useHash||this._noShim)return this.validDrops;var t=[];return e.Array.each(this.validDrops,function(e){e.shim&&e.shim.inViewportRegion(!1,e.region)&&t.push(e)}),t},_handleTargetOver:function(){var t=this._lookup();e.Array.each(t,function(e){e._handleTargetOver.call(e)},this)},_regTarget:function(e){this.targets.push(e)},_unregTarget:function(t){var n=[],r;e.Array.each(this.targets,function(e){e!==t&&n.push(e)},this),this.targets=n,r=[],e.Array.each(this.validDrops,function(e){e!==t&&r.push(e)}),this.validDrops=r},getDrop:function(t){var n=!1,r=e.one(t);return r instanceof e.Node&&e.Array.each(this.targets,function(e){r.compareTo(e.get("node"))&&(n=e)}),n}},!0)},"@VERSION@",{requires:["dd-ddm"]}); diff --git a/build/dd-ddm-drop/dd-ddm-drop.js b/build/dd-ddm-drop/dd-ddm-drop.js index 2bb016b0715..ffd9564caf8 100644 --- a/build/dd-ddm-drop/dd-ddm-drop.js +++ b/build/dd-ddm-drop/dd-ddm-drop.js @@ -235,7 +235,7 @@ YUI.add('dd-ddm-drop', function (Y, NAME) { getBestMatch: function(drops, all) { var biggest = null, area = 0, out; - Y.Array.each(drops, function(v) { + Y.Object.each(drops, function(v) { var inter = this.activeDrag.get('dragNode').intersect(v.get('node')); v.region.area = inter.area; @@ -249,7 +249,7 @@ YUI.add('dd-ddm-drop', function (Y, NAME) { if (all) { out = []; //TODO Sort the others in numeric order by area covered.. - Y.Array.each(drops, function(v) { + Y.Object.each(drops, function(v) { if (v !== biggest) { out.push(v); } @@ -304,7 +304,7 @@ YUI.add('dd-ddm-drop', function (Y, NAME) { if (this._hasActiveShim()) { this._handleTargetOver(); } else { - Y.Array.each(this.otherDrops, function(v) { + Y.Object.each(this.otherDrops, function(v) { v._handleOut.apply(v, []); }); } diff --git a/src/dd/js/ddm-drop.js b/src/dd/js/ddm-drop.js index 481bcc52674..dd44a2cb491 100644 --- a/src/dd/js/ddm-drop.js +++ b/src/dd/js/ddm-drop.js @@ -233,7 +233,7 @@ getBestMatch: function(drops, all) { var biggest = null, area = 0, out; - Y.Array.each(drops, function(v) { + Y.Object.each(drops, function(v) { var inter = this.activeDrag.get('dragNode').intersect(v.get('node')); v.region.area = inter.area; @@ -247,7 +247,7 @@ if (all) { out = []; //TODO Sort the others in numeric order by area covered.. - Y.Array.each(drops, function(v) { + Y.Object.each(drops, function(v) { if (v !== biggest) { out.push(v); } @@ -302,7 +302,7 @@ if (this._hasActiveShim()) { this._handleTargetOver(); } else { - Y.Array.each(this.otherDrops, function(v) { + Y.Object.each(this.otherDrops, function(v) { v._handleOut.apply(v, []); }); }