                             @delegate.clickedButtonAtIndex(text, @_self)
                         when "JSAlertViewStyleDefault"
                             @delegate.clickedButtonAtIndex(1, @_self)
-                if (@delegate? && typeof @delegate.closedDialog == "function")
-                    @delegate.closedDialog(@_self)
                 $(@_viewSelector+"_form").dialog("close")
                 @_self.removeFromSuperview()
         if (@cancel == true)

        if (@_closeEvent?)
            $(@_viewSelector+"_form").dialog
                close: =>
                    @_closeEvent(@_self)
        $(@_viewSelector+"_form").dialog("open")


                Cancel:=>
                    if (@delegate? && typeof @delegate.clickedButtonAtIndex == "function")
                        @delegate.clickedButtonAtIndex(0, @_self)
                    $(@_viewSelector+"_form").dialog("close")
                    @_self.removeFromSuperview()
            buttonhash['Cancel'] = cancelmethod['Cancel']
