Bug Tracker

Modify

Ticket #4695 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

Rrror: jQuery.event.specialAll[type].teardown is undefined

Reported by: rentzsch Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:

Description

Reproduction:

  1. Load  http://rentzsch.com/share/jQuery_1.3_teardown_undefined.html in Firefox.
  1. Reload the page.

Expected:

• Page reloads normally.

Actual:

• An error is logged:

Error: jQuery.event.specialAll[type].teardown is undefined
Source File: http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js
Line: 2561

Environment:

• Mac OS X/Intel 10.5.6

• Firefox 3.0.10

Regression:

• Does NOT appear in 1.2.6.

• DOES appear in 1.3.

• DOES appear in 1.3.1.

Notes:

• "Bob" has the same issue on Firefox 3.0.10 on Ubuntu:  http://groups.google.com/group/jquery-dev/msg/0996558bbedae24a

• Coda 1.6.4, which uses WebKit, reports 2561: Undefined value upon reloading the page. So this bug doesn't look Firefox-specific.

• The Object.prototype.getFoo assignment seems critical. It appears upon removing the click handler, the machinery gets confused and thinks getFoo() is also an event handler, which it fails to remove.

Change History

comment:1 Changed 4 years ago by wd.acgrs

The same problem occur in Chrome 3.0.182.3 under Windows XP SP3.

comment:2 Changed 4 years ago by dmethvin

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

Yes, jQuery does not support code that modifies Object.prototype. There are several discussions of this on the dev group. It may be supported in the future but is not supported now.

comment:3 Changed 4 years ago by dmethvin

See #2721 for the open ticket on this.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.