First, please don't use all-caps in your email subjects. Second, Yes, this is known - and it's highly recommended that you don't extend Object.prototype - it'll do far more than break jQuery.
Third, it's something that we're looking into for the future, but please don't do it, regardless of the state of jQuery. http://erik.eae.net/archives/2005/06/06/22.13.54/ --John 2009/3/27 DBJDBJ <[email protected]>: > > > I have found this: > > If I do this, in a global scope : > > Object.prototype.any_method = function () {} > > Then Sizzle fails. > > [ jQuery.1.3.2 (uncompressed) ] > > 1583: while (expr && set.length) { > 1584: for (var type in Expr.filter) { > 1585: if ((match = Expr.match[type].exec(expr)) != > null) { > 1586: var filter = Expr.filter[type], found, > item; > 1587: anyFound = false; > 1588: > 1589: if (curLoop == result) { > 1590: result = []; > 1591: } > > Line 1585 , causes an exception "Object does not support this property > or method". > This is because Expr.match[type].exec is "undefined", when type == > any_method > An it inevitably will become that because of the > Object.protoype.any_method "extension" ... > > In the presence of jQuery (Sizzle) users should be able to add methods > to Object prototype, I think ? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
