Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#4695 closed bug (invalid)

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:
Blocked by: Blocking:

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:

  • 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 (3)

comment:1 Changed 11 years ago by wd.acgrs

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

comment:2 Changed 11 years ago by dmethvin

Resolution: invalid
Status: newclosed

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 11 years ago by dmethvin

See #2721 for the open ticket on this.

Note: See TracTickets for help on using tickets.