mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 00:18:03 -05:00
Added a fix for when trim receives a null value (bug #1395).
This commit is contained in:
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
@@ -1607,7 +1607,7 @@ jQuery.extend({
|
||||
* @cat JavaScript
|
||||
*/
|
||||
trim: function(t){
|
||||
return t.replace(/^\s+|\s+$/g, "");
|
||||
return (t||"").replace(/^\s+|\s+$/g, "");
|
||||
},
|
||||
|
||||
makeArray: function( a ) {
|
||||
|
||||
Reference in New Issue
Block a user