dijit.Dialog onHide function

Discussion created by samirgambhir on Nov 21, 2012
I have a dialog dijit with id="aboutUs". I would like this to show when the application loads. The onHide event (first event) triggers another event (second event), as shown in the code below. I would like the second event to occur only after the initial load. If user opens up this diaolg again while using the application, the second event should not be triggered. To enable this, I included the "onHide" function only in the "init" function as shown below, but the second event is triggering any time I close the dialog. How do I fix this?
function init(){
   var dlg = dijit.byId("aboutUs");
   dojo.connect(dlg,"onHide",function() {{
    type : 'slideUnit',
    data : "imgWrapperPullOut"