Bug Tracker


Ticket #8604 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

.live have an error?

Reported by: alfnielsen@… Owned by: alfnielsen@…
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.1
Keywords: Cc:
Blocking: Blocked by:



CHROME 10.0.648.151




mouseAddTower = {

type : 'tower1', bgc : '#aaf', range: 60, cost: 25, level: 0





Uncaught TypeError: Object function (o) {

for(var i in o){


} return this;

} has no method 'replace'

b.k.matchesSelectorjquery-1.5.1.min.js:16 d.extend.filterjquery-1.5.1.min.js:16 d.fn.extend.isjquery-1.5.1.min.js:16 d.fn.extend.closestjquery-1.5.1.min.js:16 Ejquery-1.5.1.min.js:16 d.event.handlejquery-1.5.1.min.js:16 d.event.add.m.k.handle.m

Change History

comment:1 Changed 3 years ago by anonymous

It have same problem in jquery 1.4.4?? Maybe I have made an writing error some other place! But it say the same, some object in jquery dont have 'replace'?

comment:2 Changed 3 years ago by addyosmani

Thanks for submitting a ticket to the jQuery Bug Tracker. In order to assist you further, could you please also submit a reduced test case on  http://jsFiddle.net that reproduces the issue you are experiencing?

Please also try testing using jQuery-GIT to see if the issue submitted persists.

comment:3 Changed 3 years ago by addyosmani

  • Owner set to alfnielsen@…
  • Status changed from new to pending

comment:4 Changed 3 years ago by alfnielsen@…

  • Status changed from pending to new

I find the problem:

The .live stop working when you extent the Object prototype?


comment:5 Changed 3 years ago by timmywil

There are a few problems with that fiddle. It is considered taboo to extend any native prototypes. It is best never to do that. Also, there's no selector on that link.

comment:6 Changed 3 years ago by alfnielsen@…

I have changed the fiddle so there are a selector, but it still doesn't work.

I know that many people think is a taboo, but Prototype and other frameworks do it!

Well, I dint know that a had a extension of the Object in my work and have deledet it, but I still think its a bug in jquery.

But if you dont, I will leave it with that :-) I normally dont use extension native prototype, I just extend jquery....

comment:7 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

jQuery does not support extending Object.prototype.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


Add a comment

Modify Ticket

as closed

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.