Added a fix for when trim receives a null value (bug #1395).
This commit is contained in:
parent
42f30dd181
commit
a2482e5e87
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
|
@ -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 ) {
|
||||||
|
|
Loading…
Reference in a new issue