From 1c5685d68f1b73270fb814fe04cbb490eb90ba5f Mon Sep 17 00:00:00 2001 From: mensonge Date: Fri, 14 Nov 2008 15:39:19 +0000 Subject: Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library) git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f --- includes/js/dojox/fx/scroll.js | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 includes/js/dojox/fx/scroll.js (limited to 'includes/js/dojox/fx/scroll.js') diff --git a/includes/js/dojox/fx/scroll.js b/includes/js/dojox/fx/scroll.js deleted file mode 100644 index 34111a2..0000000 --- a/includes/js/dojox/fx/scroll.js +++ /dev/null @@ -1,40 +0,0 @@ -if(!dojo._hasResource["dojox.fx.scroll"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. -dojo._hasResource["dojox.fx.scroll"] = true; -dojo.provide("dojox.fx.scroll"); -dojo.experimental("dojox.fx.scroll"); - -dojo.require("dojox.fx._core"); - -dojox.fx.smoothScroll = function(/* Object */args){ - // summary: Returns an animation that will smooth-scroll to a node (specified in etup()) - // description: This implementation support either horizental or vertical scroll, as well as - // both. In addition, element in iframe can be scrolled to correctly. - // offset: {x: int, y: int} this will be added to the target position - // duration: Duration of the animation in milliseconds. - // win: a node or window object to scroll - - if(!args.target){ args.target = dojo.coords(args.node,true); } - - var isWindow = dojo[(dojo.isIE ? "isObject" : "isFunction")](args["win"].scrollTo); - - var _anim = (isWindow) ? - (function(val){ - args.win.scrollTo(val[0],val[1]); - }) : - (function(val){ - args.win.scrollLeft = val[0]; - args.win.scrollTop = val[1]; - }); - - var anim = new dojo._Animation(dojo.mixin({ - beforeBegin: function(){ - if(this.curve){ delete this.curve; } - var current = isWindow ? dojo._docScroll() : {x: args.win.scrollLeft, y: args.win.scrollTop}; - anim.curve = new dojox.fx._Line([current.x,current.y],[args.target.x,args.target.y]); - }, - onAnimate: _anim - },args)); - return anim; // dojo._Animation -}; - -} -- cgit v1.2.3