Project

General

Profile

Statistics
| Revision:

root / trunk / web / dojo / dojox / form / manager / _ClassMixin.js

History | View | Annotate | Download (888 Bytes)

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["dojox.form.manager._ClassMixin"]){
9
dojo._hasResource["dojox.form.manager._ClassMixin"]=true;
10
dojo.provide("dojox.form.manager._ClassMixin");
11
dojo.require("dojox.form.manager._Mixin");
12
(function(){
13
var fm=dojox.form.manager,aa=fm.actionAdapter,ia=fm.inspectorAdapter;
14
dojo.declare("dojox.form.manager._ClassMixin",null,{gatherClassState:function(_1,_2){
15
var _3=this.inspect(ia(function(_4,_5){
16
return dojo.hasClass(_5,_1);
17
}),_2);
18
return _3;
19
},addClass:function(_6,_7){
20
this.inspect(aa(function(_8,_9){
21
dojo.addClass(_9,_6);
22
}),_7);
23
return this;
24
},removeClass:function(_a,_b){
25
this.inspect(aa(function(_c,_d){
26
dojo.removeClass(_d,_a);
27
}),_b);
28
return this;
29
}});
30
})();
31
}