]> git.wh0rd.org - tt-rss.git/blame - lib/dojo/NodeList-fx.js
add dijit/dojo stuff; initial ui mockup
[tt-rss.git] / lib / dojo / NodeList-fx.js
CommitLineData
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
8if(!dojo._hasResource["dojo.NodeList-fx"]){
9dojo._hasResource["dojo.NodeList-fx"]=true;
10dojo.provide("dojo.NodeList-fx");
11dojo.require("dojo.fx");
12dojo.extend(dojo.NodeList,{_anim:function(_1,_2,_3){
13_3=_3||{};
14var a=dojo.fx.combine(this.map(function(_4){
15var _5={node:_4};
16dojo.mixin(_5,_3);
17return _1[_2](_5);
18}));
19return _3.auto?a.play()&&this:a;
20},wipeIn:function(_6){
21return this._anim(dojo.fx,"wipeIn",_6);
22},wipeOut:function(_7){
23return this._anim(dojo.fx,"wipeOut",_7);
24},slideTo:function(_8){
25return this._anim(dojo.fx,"slideTo",_8);
26},fadeIn:function(_9){
27return this._anim(dojo,"fadeIn",_9);
28},fadeOut:function(_a){
29return this._anim(dojo,"fadeOut",_a);
30},animateProperty:function(_b){
31return this._anim(dojo,"animateProperty",_b);
32},anim:function(_c,_d,_e,_f,_10){
33var _11=dojo.fx.combine(this.map(function(_12){
34return dojo.animateProperty({node:_12,properties:_c,duration:_d||350,easing:_e});
35}));
36if(_f){
37dojo.connect(_11,"onEnd",_f);
38}
39return _11.play(_10||0);
40}});
41}