Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2676 closed bug (worksforme)

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

Reported by: bart.waggoner Owned by: Scott González
Priority: major Milestone:
Component: ui.core 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.

Change History (5)

comment:1 Changed 15 years ago by bart.waggoner

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

comment:2 Changed 15 years ago by davidserduke

Component: coreui
Owner: set to paul

comment:3 Changed 15 years ago by paul

Owner: changed from paul to scott.gonzalez

comment:4 Changed 15 years ago by Scott González

Resolution: worksforme
Status: newclosed

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

comment:5 Changed 15 years ago by (none)

Milestone: 1.2.4

Milestone 1.2.4 deleted

Note: See TracTickets for help on using tickets.