Opened 7 years ago

Closed 7 years ago

#8514 closed bug (worksforme)

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; }

Change History (1)

comment:1 Changed 7 years ago by Scott González

Resolution: worksforme
Status: newclosed

Actually, it works just fine. The widget factory treats undefined the same as this.

Note: See TracTickets for help on using tickets.