From a089699c8915636ba4f158d77dba9b012bc93208 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 4 Mar 2011 19:02:28 +0300 Subject: build custom layer of Dojo to speed up loading of tt-rss (refs #293) --- lib/dojo/dnd/move.js | 351 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 240 insertions(+), 111 deletions(-) (limited to 'lib/dojo/dnd/move.js') diff --git a/lib/dojo/dnd/move.js b/lib/dojo/dnd/move.js index af7cd98dc..f2abc1b41 100644 --- a/lib/dojo/dnd/move.js +++ b/lib/dojo/dnd/move.js @@ -5,121 +5,250 @@ */ -if(!dojo._hasResource["dojo.dnd.move"]){ -dojo._hasResource["dojo.dnd.move"]=true; +if(!dojo._hasResource["dojo.dnd.move"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. +dojo._hasResource["dojo.dnd.move"] = true; dojo.provide("dojo.dnd.move"); + dojo.require("dojo.dnd.Mover"); dojo.require("dojo.dnd.Moveable"); -dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){ -},within:false,markupFactory:function(_1,_2){ -return new dojo.dnd.move.constrainedMoveable(_2,_1); -},constructor:function(_3,_4){ -if(!_4){ -_4={}; -} -this.constraints=_4.constraints; -this.within=_4.within; -},onFirstMove:function(_5){ -var c=this.constraintBox=this.constraints.call(this,_5); -c.r=c.l+c.w; -c.b=c.t+c.h; -if(this.within){ -var mb=dojo.marginBox(_5.node); -c.r-=mb.w; -c.b-=mb.h; -} -},onMove:function(_6,_7){ -var c=this.constraintBox,s=_6.node.style; -s.left=(_7.l