dialog close event not firing

dialog close event not firing

DoUpdate: function() {
    var self = this;
   
    $( '#dialog' ).dialog({
          //resizable: false,
           autoOpen : false,
           height : 606,
           width : 899,
           modal : true,
           buttons: {
            OK: function() {
              $('#dialog').html('');
              $('#dialog').dialog('close');
            }
            close: function(event, ui) {
                self.loadPage(); //does not seem that this is ever called.
            }                                               
           }
        });
       
        $( '#dialog' ).on( "dialogclose", function( event, ui ) {} );
        $('#dialog').load("test.html").dialog('open');

   
}

});