| /* |
| Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. |
| Available via Academic Free License >= 2.1 OR the modified BSD license. |
| see: http://dojotoolkit.org/license for details |
| */ |
| |
| |
| if(!dojo._hasResource["dojo.fx.Toggler"]){ |
| dojo._hasResource["dojo.fx.Toggler"]=true; |
| dojo.provide("dojo.fx.Toggler"); |
| dojo.declare("dojo.fx.Toggler",null,{constructor:function(_1){ |
| var _t=this; |
| dojo.mixin(_t,_1); |
| _t.node=_1.node; |
| _t._showArgs=dojo.mixin({},_1); |
| _t._showArgs.node=_t.node; |
| _t._showArgs.duration=_t.showDuration; |
| _t.showAnim=_t.showFunc(_t._showArgs); |
| _t._hideArgs=dojo.mixin({},_1); |
| _t._hideArgs.node=_t.node; |
| _t._hideArgs.duration=_t.hideDuration; |
| _t.hideAnim=_t.hideFunc(_t._hideArgs); |
| dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true)); |
| dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true)); |
| },node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_3){ |
| return this.showAnim.play(_3||0); |
| },hide:function(_4){ |
| return this.hideAnim.play(_4||0); |
| }}); |
| } |