]>
Commit | Line | Data |
---|---|---|
2f01fe57 AD |
1 | /* |
2 | Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved. | |
3 | Available via Academic Free License >= 2.1 OR the modified BSD license. | |
4 | see: http://dojotoolkit.org/license for details | |
5 | */ | |
6 | ||
7 | ||
8 | if(!dojo._hasResource["dojo.NodeList-fx"]){ | |
9 | dojo._hasResource["dojo.NodeList-fx"]=true; | |
10 | dojo.provide("dojo.NodeList-fx"); | |
11 | dojo.require("dojo.fx"); | |
12 | dojo.extend(dojo.NodeList,{_anim:function(_1,_2,_3){ | |
13 | _3=_3||{}; | |
14 | var a=dojo.fx.combine(this.map(function(_4){ | |
15 | var _5={node:_4}; | |
16 | dojo.mixin(_5,_3); | |
17 | return _1[_2](_5); | |
18 | })); | |
19 | return _3.auto?a.play()&&this:a; | |
20 | },wipeIn:function(_6){ | |
21 | return this._anim(dojo.fx,"wipeIn",_6); | |
22 | },wipeOut:function(_7){ | |
23 | return this._anim(dojo.fx,"wipeOut",_7); | |
24 | },slideTo:function(_8){ | |
25 | return this._anim(dojo.fx,"slideTo",_8); | |
26 | },fadeIn:function(_9){ | |
27 | return this._anim(dojo,"fadeIn",_9); | |
28 | },fadeOut:function(_a){ | |
29 | return this._anim(dojo,"fadeOut",_a); | |
30 | },animateProperty:function(_b){ | |
31 | return this._anim(dojo,"animateProperty",_b); | |
32 | },anim:function(_c,_d,_e,_f,_10){ | |
33 | var _11=dojo.fx.combine(this.map(function(_12){ | |
34 | return dojo.animateProperty({node:_12,properties:_c,duration:_d||350,easing:_e}); | |
35 | })); | |
36 | if(_f){ | |
37 | dojo.connect(_11,"onEnd",_f); | |
38 | } | |
39 | return _11.play(_10||0); | |
40 | }}); | |
41 | } |