Opened 15 years ago
Closed 15 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.
Note: See
TracTickets for help on using
tickets.
We do not support the untold number of issues when extending the Object's prototype.