On 2/7/07, Aaron Faanes <[EMAIL PROTECTED]> wrote: > > Oops, I meant Format.strip, not trim. There's just a couple places > where: > > expression.replace(/(^\s+|\s+$)/g, '')
These are leftovers from the Prototype selectors, which MochiKit.Selector was initially ported from. This may actually be a little bit faster thatn Format.strip since strip calls lstrip and rstrip and each of those do their own type checking and regex stuff. I haven't made a very heavy use of Selector myself but I suspect that for much use and large/complex documents it will need any optimizations it can get. If someone can provide me with a hairy usage example I'd be more than willing to spend some time speeding things up. Arnar --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---