Skip to main content

Bug Tracker

Side navigation

#1488 closed bug (wontfix)

Opened August 15, 2007 11:31AM UTC

Closed September 18, 2007 01:39PM UTC

Events cause all object methods to be fired

Reported by: cynn Owned by:
Priority: major Milestone: 1.1.4
Component: event Version: 1.1.3
Keywords: event prototype methods Cc:
Blocked by: Blocking:
Description

With the following code (and jquery.js include file):

$(document).ready(function() {
  $('.element').click(function() {});
});

Object.prototype.dontcallthis = function() { alert(2); }
Object.prototype.obscurefunction = function() { alert(3); }

Clicking a .element causes both extension functions to be called, resulting in a 2 and a 3 popping up in alert boxes.

Attachments (0)
Change History (1)

Changed September 18, 2007 01:39PM UTC by brandon comment:1

resolution: → wontfix
status: newclosed

We do not support the untold number of issues when extending the Object's prototype.