Bug Tracker

Ticket #1488 (closed bug: wontfix)

Opened 1 year ago

Last modified 1 year ago

Events cause all object methods to be fired

Reported by: cynn Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.1.4 Component: event
Version: 1.1.3 Keywords: event prototype methods
Cc: Needs: Review

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

Change History

Changed 1 year ago by brandon

  • status changed from new to closed
  • resolution set to wontfix

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

Note: See TracTickets for help on using tickets.