mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Core: Correct support comments for String.prototype.trim
This commit is contained in:
parent
483ad0309c
commit
a0b19f7715
@ -21,7 +21,8 @@ var
|
|||||||
return new jQuery.fn.init( selector, context );
|
return new jQuery.fn.init( selector, context );
|
||||||
},
|
},
|
||||||
|
|
||||||
// Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE)
|
// Support: Android<4.1, IE<9
|
||||||
|
// Make sure we trim BOM and NBSP
|
||||||
rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
||||||
|
|
||||||
// Matches dashed string for camelizing
|
// Matches dashed string for camelizing
|
||||||
@ -347,6 +348,7 @@ jQuery.extend({
|
|||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Support: Android<4.1, IE<9
|
||||||
// Use native String.trim function wherever possible
|
// Use native String.trim function wherever possible
|
||||||
trim: trim && !trim.call("\uFEFF\xA0") ?
|
trim: trim && !trim.call("\uFEFF\xA0") ?
|
||||||
function( text ) {
|
function( text ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user