Bug Tracker

Modify

Ticket #4835 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed
  • Version changed from 1.3.2 to 1.4.2
  • Component changed from unfiled to core
  • Milestone changed from 1.4 to 1.4.3

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.