limodou wrote: > I know that prototype extends built-in classes , just like array, > string, etc, so many things can be easily processed. Does jquery has > the same things? I can only found that the API seems aimed to jQuery > instance, and there are no more extensions applied to built-in > classes. > AFAIK thats right. It's a design decision not to extend existing classes, as that can break code that iterates over properties of objects. But I'm not sure if this applies to String, too. Eg. extending String with a trim() method seems to make more sense then $.trim()...
-- Jörn _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/