Modify ↓
Ticket #4835 (closed enhancement: fixed)
Use native trim() implementation if exists
| Reported by: | rkatic | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4.3 |
| Component: | core | Version: | 1.4.2 |
| Keywords: | trim, string, native | Cc: | |
| Blocking: | Blocked by: |
Description
if ( String.trim ) {
jQuery.trim = function( text ) {
return String.trim(text || '');
}
}
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Fixed. http://github.com/jquery/jquery/commit/141ad3c3e21e7734e67e37b5fb39782fe11b3c18