From 2f01fe57a8d37767827d6db42850aef86a767c53 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 15 Nov 2010 10:39:52 +0300 Subject: add dijit/dojo stuff; initial ui mockup --- lib/dojo/NodeList-fx.js | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 lib/dojo/NodeList-fx.js (limited to 'lib/dojo/NodeList-fx.js') diff --git a/lib/dojo/NodeList-fx.js b/lib/dojo/NodeList-fx.js new file mode 100644 index 000000000..f08fdcab4 --- /dev/null +++ b/lib/dojo/NodeList-fx.js @@ -0,0 +1,41 @@ +/* + Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dojo.NodeList-fx"]){ +dojo._hasResource["dojo.NodeList-fx"]=true; +dojo.provide("dojo.NodeList-fx"); +dojo.require("dojo.fx"); +dojo.extend(dojo.NodeList,{_anim:function(_1,_2,_3){ +_3=_3||{}; +var a=dojo.fx.combine(this.map(function(_4){ +var _5={node:_4}; +dojo.mixin(_5,_3); +return _1[_2](_5); +})); +return _3.auto?a.play()&&this:a; +},wipeIn:function(_6){ +return this._anim(dojo.fx,"wipeIn",_6); +},wipeOut:function(_7){ +return this._anim(dojo.fx,"wipeOut",_7); +},slideTo:function(_8){ +return this._anim(dojo.fx,"slideTo",_8); +},fadeIn:function(_9){ +return this._anim(dojo,"fadeIn",_9); +},fadeOut:function(_a){ +return this._anim(dojo,"fadeOut",_a); +},animateProperty:function(_b){ +return this._anim(dojo,"animateProperty",_b); +},anim:function(_c,_d,_e,_f,_10){ +var _11=dojo.fx.combine(this.map(function(_12){ +return dojo.animateProperty({node:_12,properties:_c,duration:_d||350,easing:_e}); +})); +if(_f){ +dojo.connect(_11,"onEnd",_f); +} +return _11.play(_10||0); +}}); +} -- cgit v1.2.3