Fixed #1714 by adding a default empty string if the value is falsey.
This commit is contained in:
parent
0a755f6ab3
commit
5c6c99361f
2 changed files with 4 additions and 2 deletions
|
@ -396,7 +396,7 @@ jQuery.fn = jQuery.prototype = {
|
|||
|
||||
// Everything else, we just grab the value
|
||||
} else
|
||||
return this[0].value.replace(/\r/g, "");
|
||||
return (this[0].value || "").replace(/\r/g, "");
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue