]> source.dussan.org Git - jquery.git/commitdiff
jquery core: casting numbers received by val() to string.
authorAriel Flesler <aflesler@gmail.com>
Sat, 24 May 2008 17:57:45 +0000 (17:57 +0000)
committerAriel Flesler <aflesler@gmail.com>
Sat, 24 May 2008 17:57:45 +0000 (17:57 +0000)
src/core.js

index fdf5072eba6876bc261186bbb8d2b7c11a675972..d46f89d16a00c087accbeff5885787fbd9670af0 100644 (file)
@@ -401,6 +401,9 @@ jQuery.fn = jQuery.prototype = {
                        return undefined;
                }
 
+               if( value.constructor == Number )
+                       value += '';
+
                return this.each(function(){
                        if ( this.nodeType != 1 )
                                return;