#NEWLINE# def onBrowserEvent( self , event ) : #NEWLINE# #INDENT# etype = DOM . eventGetType ( event ) #NEWLINE# if ( etype == 'click' ) : #NEWLINE# #INDENT# DOM . eventPreventDefault ( newstate ) #NEWLINE# newstate = ( not self . disclosurePanel . getOpen ( ) ) #NEWLINE# self . disclosurePanel . setOpen ( newstate )