Added a fix for when trim receives a null value (bug #1395).
This commit is contained in:
parent
42f30dd181
commit
a2482e5e87
1 changed files with 1 additions and 1 deletions
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 ) {
|
||||
|
|
Loading…
Reference in a new issue