Side navigation
#2279 closed enhancement (fixed)
Opened February 04, 2008 07:50AM UTC
Closed March 09, 2010 02:14PM UTC
faster trim
Reported by: | phpmyforum | Owned by: | flesler |
---|---|---|---|
Priority: | minor | Milestone: | 1.4.3 |
Component: | core | Version: | 1.4.2 |
Keywords: | Cc: | phpmyforum | |
Blocked by: | Blocking: |
Description
Maybe everyone had read this already... I think jQuery would really benefit from this:
http://blog.stevenlevithan.com/archives/faster-trim-javascript
Attachments (2)
Change History (7)
Changed February 20, 2008 02:55PM UTC by comment:1
Changed April 24, 2008 07:06AM UTC by comment:2
No one interested?
Changed May 12, 2008 12:56AM UTC by comment:3
I actually proposed one, and I think this trim12 is pretty much mine :)
Changed July 03, 2008 03:27AM UTC by comment:4
milestone: | 1.2.3 → 1.3 |
---|---|
need: | Review → Patch |
owner: | → flesler |
status: | new → assigned |
Changed November 29, 2008 06:03PM UTC by comment:5
cc: | → phpmyforum |
---|---|
need: | Patch → Commit |
I think I'll add this trim function.
We need to do some tests to verify it's a good choice for most situations.
Changed February 09, 2009 03:43PM UTC by comment:6
After fixing #4037, .trim() is no longer used in jQuery core - FYI.
Changed March 09, 2010 02:14PM UTC by comment:7
milestone: | 1.3 → 1.4.3 |
---|---|
resolution: | → fixed |
status: | assigned → closed |
version: | 1.2.2 → 1.4.2 |
Seconded. Specifically, I'd suggest the following version, which is Steve's trim12 function with the null-value fix from bug 1395: