jquery/jquery-ui — pull request #734 by cedricbrasey (2012-10-02 09:55:45+00:00)
Title: Add a pointer to self when calling the click of a dialog button.

The scenario that i have is a main page with a 'view' iframe and the 'view' needs to display dialogs over whole page. If the dialog has custom buttons the $(this).dialog("close"); does not work as the dialog is owned by the parent page and not the iframe... so pass a pointer of the dialog as arg 2 to the button function and the do arg[1].close();

The only reason i've added this is that in the $.widget.bridge function the var instance = $.data( this, name ) line fails when the dialog is hosted in another document.