Ticket #7510 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

jQuery.data throws a script error in certain circumstances.

Reported by: dalugadm Owned by:
Priority: minor Milestone: 1.8.16
Component: ui.widget Version: 1.8.12
Keywords: Cc:
Blocking: Blocked by:

Description

In IE7 and IE8, a script error can occur in certain circumstances:

Line: 1429
Error: 'undefined' is null or not an object.

This same code works in FireFox (3.6.18). I have not tried any other browsers. This happens in both 1.8.12 and 1.8.13.

You will notice that if you remove the include for JQuery UI, the error does not occur. So, on the surface, it appears to be some type of interaction between JQuery and JQuery UI.

This error can be recreated with the following test case:  http://jsfiddle.net/ZP2T6/

Please see this ticket for additional details:  http://bugs.jquery.com/ticket/8235

Please let me know if there are additional details you would like.

Change History

comment:1 Changed 3 years ago by Scott González

  • Status changed from new to closed
  • Resolution set to fixed

Widget: Wrap the remove event trigerring in a try/catch. Fixes #7510 - jQuery.data throws a script error in certain circumstances.

Changeset: 92766654ae71e653e12ea4b0e43764cdf7b29a79

comment:2 Changed 3 years ago by Scott González

Widget: Wrap the remove event trigerring in a try/catch. Fixes #7510 - jQuery.data throws a script error in certain circumstances.

Changeset: c7c5b6b15cd24ae0de95ff576f8ca6b6b8892ced

comment:3 Changed 3 years ago by scott.gonzalez

  • Component changed from ui.core to ui.widget
  • Milestone changed from 1.9 to 1.8.16

I also reopened the core ticket and it's being fixed.

Note: See TracTickets for help on using tickets.