Skip to main content

Bug Tracker

Side navigation

#7149 closed bug (duplicate)

Opened October 11, 2010 03:57PM UTC

Closed October 11, 2010 06:45PM UTC

Last modified October 11, 2010 07:09PM UTC

Problem with jquery-ui dialog

Reported by: rodryquintero Owned by:
Priority: undecided Milestone: 1.4.3
Component: unfiled Version: 1.4.2
Keywords: jqueryui dialog Cc:
Blocked by: Blocking:

I have the following code for a jquery dialog:



autoOpen: false,

modal: true,

resizable: false,

buttons: { "OK": function() { $(this).dialog("close"); }}


and this gives me the following error using 1.4.3RC:

h is null

[Break on this error] b){var d=[],e,g,h=this[0];if(c.isArray...h=h.parentNode;if(!h.ownerDocument||

When I comment out the dialog declaration the error disssapears.

Attachments (0)
Change History (3)

Changed October 11, 2010 04:31PM UTC by addyosmani comment:1

need: ReviewPatch

Recreated the above test case here:

Using jQuery 1.4.2 the UI components are working fine but switching over to the 1.4.3 RC is causing some breakage. I'm not seeing the exact same errors as originally submitted (instead d.ui.plugin is undefined / dialog is not a function).

Confirming this is an issue across FF, Opera and Webkit browsers. Have yet to test with IE.

Changed October 11, 2010 06:45PM UTC by snover comment:2

resolution: → duplicate
status: newclosed

addysomani your testcase is broken. The problem is with the buttons property. This is a duplicate of #7147.

Changed October 11, 2010 07:09PM UTC by addyosmani comment:3

snover: The test case was broken on purpose to show breakage - was there something else in there you noticed that needs correcting? If so, let me know and I'll update.