diff options
author | David Serduke <davidserduke@gmail.com> | 2007-11-28 16:38:34 +0000 |
---|---|---|
committer | David Serduke <davidserduke@gmail.com> | 2007-11-28 16:38:34 +0000 |
commit | 5c6c99361f315bfbc5829be3af94499c3a107f5d (patch) | |
tree | fd91da10a5d0ac59aeb57767bb50bf05fd9a6089 /src | |
parent | 0a755f6ab38d36ffda02f9ff5a6d606c24a94baa (diff) | |
download | jquery-5c6c99361f315bfbc5829be3af94499c3a107f5d.tar.gz jquery-5c6c99361f315bfbc5829be3af94499c3a107f5d.zip |
Fixed #1714 by adding a default empty string if the value is falsey.
Diffstat (limited to 'src')
-rw-r--r-- | src/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js index ce2651963..0ebc61dff 100644 --- a/src/core.js +++ b/src/core.js @@ -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, ""); } |