aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-01-11 18:44:53 +0000
committerJohn Resig <jeresig@gmail.com>2007-01-11 18:44:53 +0000
commitbfa79591b3c849d8df6cd8c7eac757732a855519 (patch)
treeb1c6feb041fde0ab7a876276aefd24112ea091a5
parentf368960479a1b8f7904bc2ca65a7a9cd74cc5a13 (diff)
downloadjquery-bfa79591b3c849d8df6cd8c7eac757732a855519.tar.gz
jquery-bfa79591b3c849d8df6cd8c7eac757732a855519.zip
Added a fix for .append( Number )
-rw-r--r--src/jquery/jquery.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index d8fa3a6c5..70a16e680 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -1388,6 +1388,9 @@ jQuery.extend({
var arg = a[i];
if ( !arg ) continue;
+
+ if ( arg.constructor == Number )
+ arg = arg.toString();
// Convert html string into DOM nodes
if ( typeof arg == "string" ) {