Bug Tracker

Opened 14 years ago

Closed 13 years ago

#4835 closed enhancement (fixed)

Use native trim() implementation if exists

Reported by: Robert Katić Owned by:
Priority: major Milestone: 1.4.3
Component: core Version: 1.4.2
Keywords: trim, string, native Cc:
Blocked by: Blocking:

Description

if ( String.trim ) {
  jQuery.trim = function( text ) {
    return String.trim(text || '');
  }
}

Change History (1)

comment:1 Changed 13 years ago by john

Component: unfiledcore
Milestone: 1.41.4.3
Resolution: fixed
Status: newclosed
Version: 1.3.21.4.2
Note: See TracTickets for help on using tickets.