Project

General

Profile

Statistics
| Revision:

root / trunk / web / dojo / dojox / fx / ext-dojo / NodeList-style.js

History | View | Annotate | Download (883 Bytes)

1 9 andrej.cim
/*
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["dojox.fx.ext-dojo.NodeList-style"]){
9
dojo._hasResource["dojox.fx.ext-dojo.NodeList-style"]=true;
10
dojo.provide("dojox.fx.ext-dojo.NodeList-style");
11
dojo.experimental("dojox.fx.ext-dojo.NodeList-style");
12
dojo.require("dojo.NodeList-fx");
13
dojo.require("dojox.fx.style");
14
dojo.extend(dojo.NodeList,{addClassFx:function(_1,_2){
15
return dojo.fx.combine(this.map(function(n){
16
return dojox.fx.addClass(n,_1,_2);
17
}));
18
},removeClassFx:function(_3,_4){
19
return dojo.fx.combine(this.map(function(n){
20
return dojox.fx.removeClass(n,_3,_4);
21
}));
22
},toggleClassFx:function(_5,_6,_7){
23
return dojo.fx.combine(this.map(function(n){
24
return dojox.fx.toggleClass(n,_5,_6,_7);
25
}));
26
}});
27
}