Skip to content
Permalink
Browse files
Added a fix for when trim receives a null value (bug #1395).
  • Loading branch information
jeresig committed Jul 20, 2007
1 parent 42f30dd commit a2482e5
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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 ) {

0 comments on commit a2482e5

Please sign in to comment.