#149 new
nickg

Change __trim__ to Envjs.trim so it can per-platform

Reported by nickg | April 8th, 2010 @ 03:12 PM

another minor one...

we use a global function trim strip whitespace from a string. It uses regexp to do the work.

On every platform except Rhino, String.prototype.trim exists, which is likely to 10,000,000x faster than the regexp. We should make it easy to replace the guts of the trim function.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

a javascript browser environment

People watching this ticket

Pages