Skip to main content

Bug Tracker

Side navigation

#2676 closed bug (worksforme)

Opened April 10, 2008 05:34PM UTC

Closed April 18, 2008 02:51PM UTC

Last modified March 15, 2012 09:06AM UTC

Error on window close after showing ui dialog: "jquery.event.special[...].teardown is null or not an object"

Reported by: bart.waggoner Owned by: scottgonzalez
Priority: major Milestone: 1.2.4
Component: ui Version: 1.2.3
Keywords: Cc:
Blocked by: Blocking:
Description

After showing a jquery ui dialog, i get the following javascript error from IE 7 when I navigate to a new page:

"jquery.event.special[...].teardown is null or not an object"

This is how the dialog is created and closed:

$("#sqlDlg").dialog({

title: "SQL Expression",

buttons: {

"OK": sqlDoOk,

"Cancel": sqlDoCancel

},

height: 225,

width: 530

});

$("#sqlDlg").show();

function sqlDoOk()

{

$("#sqlDlg").dialog('close');

}

function sqlDoCancel()

{

$("#sqlDlg").dialog('close');

}

I tried using .dialog('destroy') but that created an all new JavaScript error.

Attachments (0)
Change History (4)

Changed April 10, 2008 05:38PM UTC by bart.waggone comment:1

I forgot to set this to UI component, and mention this is in ui 1.5b.

Bart

Changed April 11, 2008 06:32AM UTC by davidserduke comment:2

component: coreui
owner: → paul

Changed April 16, 2008 08:31AM UTC by paul comment:3

owner: paulscott.gonzalez

Changed April 18, 2008 02:51PM UTC by scott.gonzal comment:4

resolution: → worksforme
status: newclosed

I have a feeling you're modifying the Object prototype (based on #2675), which will break jQuery.