git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec07526
)
jquery core: casting numbers received by val() to string.
author
Ariel Flesler
<aflesler@gmail.com>
Sat, 24 May 2008 17:57:45 +0000
(17:57 +0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Sat, 24 May 2008 17:57:45 +0000
(17:57 +0000)
src/core.js
patch
|
blob
|
history
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;