Search and Top Navigation
#8514 closed bug (worksforme)
Opened August 21, 2012 10:35PM UTC
Closed August 21, 2012 10:40PM UTC
dialog.open() does not return reference to self when dialog is already opened
Reported by: | ghen | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.dialog | Version: | 1.8.23 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
dialog.open() does not return reference to self when dialog is already opened.
Example:
$element.dialog().dialog('open')
Problem:
there is a check inside the open() method (see jquery.ui.dialog.js line 307):
if (this._isOpen) { return; }
Expected:
if (this._isOpen) { return this; }
Attachments (0)
Change History (1)
Changed August 21, 2012 10:40PM UTC by comment:1
resolution: | → worksforme |
---|---|
status: | new → closed |
Actually, it works just fine. The widget factory treats undefined the same as
this
.