root / trunk / web / dojo / dojox / form / manager / _DisplayMixin.js
History | View | Annotate | Download (788 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._DisplayMixin"]){ |
9 |
dojo._hasResource["dojox.form.manager._DisplayMixin"]=true; |
10 |
dojo.provide("dojox.form.manager._DisplayMixin");
|
11 |
dojo.declare("dojox.form.manager._DisplayMixin",null,{gatherDisplayState:function(_1){ |
12 |
var _2=this.inspectAttachedPoints(function(_3,_4){ |
13 |
return dojo.style(_4,"display")!="none"; |
14 |
},_1); |
15 |
return _2;
|
16 |
},show:function(_5,_6){ |
17 |
if(arguments.length<2){ |
18 |
_6=true;
|
19 |
} |
20 |
this.inspectAttachedPoints(function(_7,_8,_9){ |
21 |
dojo.style(_8,"display",_9?"":"none"); |
22 |
},_5,_6); |
23 |
return this; |
24 |
},hide:function(_a){ |
25 |
return this.show(_a,false); |
26 |
}}); |
27 |
} |