YUI.add("aui-widget-trigger",function(e,t){function f(){}var n=e.Lang,r="triggerChange",i="trigger",s="bindDOMEvents",i="trigger",r="triggerChange",o="triggerHideEvent",u="triggerToggleEvent",a="triggerShowEvent";f.ATTRS={bindDOMEvents:{validator:n.isBoolean,value:!0,writeOnce:!0},trigger:{setter:e.one},triggerHideEvent:{value:null},triggerShowEvent:{value:null},triggerToggleEvent:{value:null}},e.mix(f.prototype,{_eventHandles:null,initializer:function(){var t=this;e.after(t._afterRenderUIWT,t,"renderUI"),t.after(r,t._afterTriggerChange)},destructor:function(){var t=this;(new e.EventHandle(t._eventHandles)).detach()},_afterRenderUIWT:function(){var e=this;e._uiSetTrigger(e.get(i))},_afterTriggerChange:function(e){var t=this;t._uiSetTrigger(e.newVal)},_uiSetTrigger:function(t){var n=this,r,i,f,l;(new e.EventHandle(n._eventHandles)).detach(),t&&n.get(s)&&(r=n._eventHandles=[],i=n.get(o),f=n.get(a),l=n.get(u),i&&r.push(t.on(n.get(o),n.hide,n)),f&&r.push(t.on(n.get(a),n.show,n)),l&&r.push(t.on(n.get(u),n.toggle,n)))}}),e.WidgetTrigger=f},"2.0.0",{requires:["node"]});
