Skip to main content

Bug Tracker

Side navigation

#13469 closed bug (wontfix)

Opened February 18, 2013 09:29AM UTC

Closed February 18, 2013 01:50PM UTC

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

Reported by: aiqunfang@163.com 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>


Attachments (0)
Change History (1)

Changed February 18, 2013 01:50PM UTC by rwaldron comment:1

resolution: → wontfix
status: newclosed