Bug Tracker

Opened 7 years ago

Closed 7 years ago

#12918 closed bug (wontfix)

TypeError: matchExpr[type].exec is not a function

Reported by: shark@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:

Description

<script src="js/jquery-1.8.2.js"></script>
<script>
Object.prototype.mergeObjects = function() {
	return this;
}
...
myObject.mergeObjects(otherObject);
</script>

This will produce error:

TypeError: matchExpr[type].exec is not a function

if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ]

jquery-1.8.2.js (line 4717)

Change History (2)

comment:1 Changed 7 years ago by shark@…

Sorry, the version is 1.8.2 not 1.8.3.

comment:2 Changed 7 years ago by timmywil

Resolution: wontfix
Status: newclosed

jQuery does not support altering native prototypes. http://docs.jquery.com/Won't_Fix

Note: See TracTickets for help on using tickets.