Ticket #6257 (closed bug: notabug)

Opened 3 years ago

Last modified 19 months ago

Uncaught cannot call methods on dialog prior to initialization; attempted to call method 'destroy'

Reported by: shenkong Owned by:
Priority: minor Milestone:
Component: ui.core Version: 1.8.6
Keywords: Cc:
Blocking: Blocked by:

Description

Uncaught cannot call methods on dialog prior to initialization; attempted to call method 'destroy' b.widget.bridge.b.fn/cms/script/jquery.ui.js:29 c.b.extend.each/cms/script/jquery.js:32 c.b.fn.b.each/cms/script/jquery.js:26 b.widget.bridge.b.fn/cms/script/jquery.ui.js:29 option.close/cms/itil/cms/clusterInfo.php?clusterGroupId=93017:27 b.Widget._trigger/cms/script/jquery.ui.js:32 c.widget.close/cms/script/jquery.ui.js:379 b.widget.bridge.b.fn/cms/script/jquery.ui.js:29 c.b.extend.each/cms/script/jquery.js:32 c.b.fn.b.each/cms/script/jquery.js:26 b.widget.bridge.b.fn/cms/script/jquery.ui.js:29 (anonymous function)/cms/itil/cms/clusterInfo.php?clusterGroupId=93017:63 c.extend.handleSuccess/cms/script/jquery.js:141 c.extend.ajax.M.w.onreadystatechange/cms/script/jquery.js:140

Change History

comment:1 Changed 3 years ago by scott.gonzalez

  • Status changed from new to closed
  • Resolution set to invalid

comment:2 follow-up: ↓ 4 Changed 3 years ago by lotjuh

Ok, when I updated my jquery ui from 1.8.4 to 1.8.5, all of a sudden I was getting these errors as well. This bug report might be set to invalid, but still something seems to have changed between these versions, and I haven no idea how I can check if my dialog is initialized or not. Can anyone give some more information about how to upgrade from 1.8.4 to 1.8.5 so you don't get these errors anymore?

comment:3 Changed 3 years ago by lotjuh

Didn't realized 1.8.6 was out. Tried that version and the errors are gone.

comment:4 in reply to: ↑ 2 Changed 3 years ago by scott.gonzalez

Replying to lotjuh:

Ok, when I updated my jquery ui from 1.8.4 to 1.8.5, all of a sudden I was getting these errors as well. This bug report might be set to invalid, but still something seems to have changed between these versions, and I haven no idea how I can check if my dialog is initialized or not. Can anyone give some more information about how to upgrade from 1.8.4 to 1.8.5 so you don't get these errors anymore?

$( this ).is( ":ui-dialog" ) or $( this ).is( ":data(dialog)" )

comment:5 Changed 3 years ago by lotjuh

Ah thanks, that helps.

comment:6 Changed 19 months ago by scott.gonzalez

  • Milestone TBD deleted

Milestone TBD deleted

Note: See TracTickets for help on using tickets.