If I am not wrong, 'push', 'sort' and 'splice' functions are used only in Sizzle (before the jQuery obj returns to the user), so it would be safe to redefine those in plugins. Am I wrong?
On Feb 23, 10:19 pm, prefect <[email protected]> wrote: > I upgraded to jQuery 1.3.2 this evening, and was surprised by a weird > bug on a simple page in my application. The bug turned out to be due > to a conflict with a simple plugin I wrote for jQuery, which creates a > jQuery method called 'sort'. Apparently jQuery 1.3.2 aliases three > array methods onto the jQuery object, but is this really necessary? > The comments even say "for internal use only", so isn't there a way > you could do this without creating conflicts with external plugins? > > This is regarding lines 282-286 in jQuery 1.3.2: > // For internal use only. > // Behaves like an Array's method, not like a jQuery method. > push: [].push, > sort: [].sort, > splice: [].splice, > > -- > Frode --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
