]>
git.wh0rd.org - tt-rss.git/blob - lib/dojo/NodeList-fx.js
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
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
){
14 var a
=dojo
.fx
.combine(this.map(function(_4
){
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
});
37 dojo
.connect(_11
,"onEnd",_f
);
39 return _11
.play(_10
||0);