mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
parent
a35996141e
commit
279913c71b
22
src/core.js
22
src/core.js
@ -7,9 +7,8 @@ define([
|
|||||||
"./var/class2type",
|
"./var/class2type",
|
||||||
"./var/toString",
|
"./var/toString",
|
||||||
"./var/hasOwn",
|
"./var/hasOwn",
|
||||||
"./var/trim",
|
|
||||||
"./var/support"
|
"./var/support"
|
||||||
], function( arr, slice, concat, push, indexOf, class2type, toString, hasOwn, trim, support ) {
|
], function( arr, slice, concat, push, indexOf, class2type, toString, hasOwn, support ) {
|
||||||
|
|
||||||
var
|
var
|
||||||
// Use the correct document accordingly with window argument (sandbox)
|
// Use the correct document accordingly with window argument (sandbox)
|
||||||
@ -341,20 +340,11 @@ jQuery.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Support: Android<4.1
|
// Support: Android<4.1
|
||||||
// Use native String.trim function wherever possible
|
trim: function( text ) {
|
||||||
trim: trim && !trim.call("\uFEFF\xA0") ?
|
return text == null ?
|
||||||
function( text ) {
|
"" :
|
||||||
return text == null ?
|
( text + "" ).replace( rtrim, "" );
|
||||||
"" :
|
},
|
||||||
trim.call( text );
|
|
||||||
} :
|
|
||||||
|
|
||||||
// Otherwise use our own trimming functionality
|
|
||||||
function( text ) {
|
|
||||||
return text == null ?
|
|
||||||
"" :
|
|
||||||
( text + "" ).replace( rtrim, "" );
|
|
||||||
},
|
|
||||||
|
|
||||||
// results is for internal usage only
|
// results is for internal usage only
|
||||||
makeArray: function( arr, results ) {
|
makeArray: function( arr, results ) {
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
define(function() {
|
|
||||||
return "".trim;
|
|
||||||
});
|
|
Loading…
Reference in New Issue
Block a user