jQuery: The Write Less, Do More JavaScript Library

Ticket #2676 (closed bug: worksforme)

Opened 4 months ago

Last modified 3 months ago

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

Reported by: bart.waggoner Assigned to: scott.gonzalez
Type: bug Priority: major
Milestone: 1.2.4 Component: ui
Version: 1.2.3 Keywords:
Cc: Needs: Review

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

Change History

Changed 4 months ago by bart.waggoner

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

Changed 4 months ago by davidserduke

  • owner set to paul
  • component changed from core to ui

Changed 3 months ago by paul

  • owner changed from paul to scott.gonzalez

Changed 3 months ago by scott.gonzalez

  • status changed from new to closed
  • resolution set to worksforme

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

Note: See TracTickets for help on using tickets.