It's generally considered very bad practice in the Javascript world to extend Object.prototype: http://erik.eae.net/archives/2005/06/06/22.13.54/
Your best bet is to move your merge function elsewhere. 2009/4/21 Obinna <obi...@gmail.com>: > I have some code where I add a function to object prototype like: > > Object.prototype.merge= (function (object) { > ... > }); > > However, if i use this code with jquery (1.3.2) and then try to use the > attr() operator to set an attribute value, it throws an error because (line > 1026) tries to call: > > elem.setAttribute( name, "" + value ); > > for all properties of the object including the 'merge' function declared > above. (where name is now the merge'()' function declared above) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---