JSDoc: Class: Dialog

# Class: Dialog

## modal.Dialog(curBrowserFn, winRefopt)

Represents the current modal dialogue.

## Constructor

#### new Dialog(curBrowserFn, winRefopt)

##### Parameters:

Name | Type | Attributes | Description
--- | --- | --- | ---
`curBrowserFn` | function |  | Function that returns the current |browser.Context|.
`winRef` | nsIWeakReference | <optional> | A weak reference to the current |ChromeWindow|.

Source:
  - modal.js, line 129

### Members

#### window

Returns the ChromeWindow associated with an open dialog window if it is currently attached to the DOM.

Source:
  - modal.js, line 141