Search and Top Navigation
#15293 new bug ()
Opened May 06, 2018 03:20PM UTC
Last modified May 06, 2018 04:58PM UTC
isOpen() behavior is wrong when called on an unitialized dialog
Reported by: | arkanovicz | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.dialog | Version: | 1.12.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If I do:
$('#unexisting_dialog').dialog('isOpen')
it silently returns an r.fn.init Object, which evaluates to true, without any error in the console.
It seems neither handy nor consistent with other methods behavior.
Attachments (0)
Change History (2)
Changed May 06, 2018 03:21PM UTC by comment:1
description: | If I do: \ \ $('#unexisting_dialog').dialog('isOpen') \ \ it silently returns an r.fn.init Object, which evaluates to true, without any error in the console. \ \ It seems neither handy nor consistent with othen methods behavior. \ → If I do: \ \ $('#unexisting_dialog').dialog('isOpen') \ \ it silently returns an r.fn.init Object, which evaluates to true, without any error in the console. \ \ It seems neither handy nor consistent with other methods behavior. \ |
---|
Changed May 06, 2018 04:58PM UTC by comment:2
description: | If I do: \ \ $('#unexisting_dialog').dialog('isOpen') \ \ it silently returns an r.fn.init Object, which evaluates to true, without any error in the console. \ \ It seems neither handy nor consistent with other methods behavior. \ → If I do: \ \ {{{#!javascript \ $('#unexisting_dialog').dialog('isOpen') \ }}} \ \ it silently returns an r.fn.init Object, which evaluates to true, without any error in the console. \ \ It seems neither handy nor consistent with other methods behavior. \ |
---|