git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
jquery core: casting numbers received by val() to string.
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
fdf5072
..
d46f89d
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-401,6
+401,9
@@
jQuery.fn = jQuery.prototype = {
return undefined;
}
+ if( value.constructor == Number )
+ value += '';
+
return this.each(function(){
if ( this.nodeType != 1 )
return;