#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
comment:2 Changed 15 years ago by
Component: | core → ui |
---|---|
Owner: | set to paul |
comment:3 Changed 15 years ago by
Owner: | changed from paul to scott.gonzalez |
---|
comment:4 Changed 15 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I have a feeling you're modifying the Object prototype (based on #2675), which will break jQuery.
I forgot to set this to UI component, and mention this is in ui 1.5b. Bart