Bug Tracker

Opened 13 years ago

Closed 13 years ago

#1488 closed bug (wontfix)

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.

Change History (1)

comment:1 Changed 13 years ago by brandon

Resolution: wontfix
Status: newclosed

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

Note: See TracTickets for help on using tickets.