Bug Tracker

Opened 7 years ago

Closed 7 years ago

#13469 closed bug (wontfix)

jquery conflict with prototype of Object, for ex., Object.prototype.show

Reported by: aiqunfang@… 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>


Change History (1)

comment:1 Changed 7 years ago by Rick Waldron

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.