//>>built
define("dojox/mdnd/LazyManager","dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/dom-class dojo/dom-construct dojo/dom-attr dojo/dnd/common dojo/dnd/Manager ./PureSource dojo/_base/unload".split(" "),function(d,e,f,g,h,k,l,m,n){return e("dojox.mdnd.LazyManager",null,{constructor:function(){this._registry={};this._fakeSource=new n(h.create("div"),{copyOnly:!1});this._fakeSource.startup();d.addOnUnload(f.hitch(this,"destroy"));this.manager=m.manager()},getItem:function(b){var a=b.getAttribute("dndType");
return{data:b.getAttribute("dndData")||b.innerHTML,type:a?a.split(/\s*,\s*/):["text"]}},startDrag:function(b,a){if(a=a||b.target){var c=this.manager,p=this.getItem(a);""==a.id&&k.set(a,"id",l.getUniqueId());g.add(a,"dojoDndItem");this._fakeSource.setItem(a.id,p);c.startDrag(this._fakeSource,[a],!1);c.onMouseMove(b)}},cancelDrag:function(){var b=this.manager;b.target=null;b.onMouseUp()},destroy:function(){this._fakeSource.destroy()}})});