Opened 10 years ago
Closed 10 years ago
#13469 closed bug (wontfix)
jquery conflict with prototype of Object, for ex., Object.prototype.show
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title> <script type="text/javascript" src="jquery-1.9.1.js"></script> <script type="text/javascript"> Object.prototype.show = alert; // comment this line $(function () { $("#txt").on({ click: function () { alert("bingo!"); }}); }); </script> </head> <body> <input id="txt" /> </body> </html>
Note: See
TracTickets for help on using
tickets.
http://contribute.jquery.org/wont-fix/