Commit a2482e5e authored by John Resig's avatar John Resig

Added a fix for when trim receives a null value (bug #1395).

parent 42f30dd1
...@@ -1607,7 +1607,7 @@ jQuery.extend({ ...@@ -1607,7 +1607,7 @@ jQuery.extend({
* @cat JavaScript * @cat JavaScript
*/ */
trim: function(t){ trim: function(t){
return t.replace(/^\s+|\s+$/g, ""); return (t||"").replace(/^\s+|\s+$/g, "");
}, },
makeArray: function( a ) { makeArray: function( a ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment