hasOwn = Object.prototype.hasOwnProperty,
push = Array.prototype.push,
slice = Array.prototype.slice,
+ trim = String.prototype.trim,
indexOf = Array.prototype.indexOf;
jQuery.fn = jQuery.prototype = {
},
// Use native String.trim function wherever possible
- trim: String.trim ?
+ trim: trim ?
function( text ) {
return text == null ?
"" :
- String.trim( text );
+ trim.call( text );
} :
// Otherwise use our own trimming functionality