Aliasing of array methods in jQuery

Aliasing of array methods in jQuery


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