jQuery: The Write Less, Do More JavaScript Library

Re: Jquery and ViaMichelin Maps Api Problem

by John Resig :: Rate this Message:

Reply to Author | View in Thread


> It seems to indicate that jQuery assumes that no properties have been
> added to Object.prototype?
> Is it possible that jQuery should be using hasOwnProperty in "for ... in" loops?

That is certainly an option - but at the cost of performance. We've
done testing of this in the past and have, for now, opted to err on
the side of performance instead of ubiquitous compatibility. We may
change this eventually but that's our reasoning, for now.

--John

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to jquery-dev-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: Jquery and ViaMichelin Maps Api Problem