Project

General

Profile

Download (1.12 KB) Statistics
| Branch: | Revision:
1
/*
2
	Copyright (c) 2004-2008, 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
return dojo.fx.combine(this.map(function(_4){
15
var _5={node:_4};
16
dojo.mixin(_5,_3);
17
return _1[_2](_5);
18
}));
19
},wipeIn:function(_6){
20
return this._anim(dojo.fx,"wipeIn",_6);
21
},wipeOut:function(_7){
22
return this._anim(dojo.fx,"wipeOut",_7);
23
},slideTo:function(_8){
24
return this._anim(dojo.fx,"slideTo",_8);
25
},fadeIn:function(_9){
26
return this._anim(dojo,"fadeIn",_9);
27
},fadeOut:function(_a){
28
return this._anim(dojo,"fadeOut",_a);
29
},animateProperty:function(_b){
30
return this._anim(dojo,"animateProperty",_b);
31
},anim:function(_c,_d,_e,_f,_10){
32
var _11=dojo.fx.combine(this.map(function(_12){
33
return dojo.animateProperty({node:_12,properties:_c,duration:_d||350,easing:_e});
34
}));
35
if(_f){
36
dojo.connect(_11,"onEnd",_f);
37
}
38
return _11.play(_10||0);
39
}});
40
}
(4-4/26)