liuyg
2021-07-02 25ce610f6ecca7325e7a743dc032c4a76559c63d
1
2
3
4
//>>built
define("dojo/aspect dojo/_base/declare dojo/dom-class dojo/_base/lang dojo/on dojo/touch".split(" "),function(f,h,c,b,e,g){return h("dijit.tree._dndContainer",null,{constructor:function(a,d){this.tree=a;this.node=a.domNode;b.mixin(this,d);this.containerState="";c.add(this.node,"dojoDndContainer");this.events=[e(this.node,g.enter,b.hitch(this,"onOverEvent")),e(this.node,g.leave,b.hitch(this,"onOutEvent")),f.after(this.tree,"_onNodeMouseEnter",b.hitch(this,"onMouseOver"),!0),f.after(this.tree,"_onNodeMouseLeave",
b.hitch(this,"onMouseOut"),!0),e(this.node,"dragstart, selectstart",function(a){a.preventDefault()})]},destroy:function(){for(var a;a=this.events.pop();)a.remove();this.node=this.parent=null},onMouseOver:function(a){this.current=a},onMouseOut:function(){this.current=null},_changeState:function(a,d){var b="dojoDnd"+a;a=a.toLowerCase()+"State";c.replace(this.node,b+d,b+this[a]);this[a]=d},_addItemClass:function(a,b){c.add(a,"dojoDndItem"+b)},_removeItemClass:function(a,b){c.remove(a,"dojoDndItem"+b)},
onOverEvent:function(){this._changeState("Container","Over")},onOutEvent:function(){this._changeState("Container","")}})});