diff options
author | John Resig <jeresig@gmail.com> | 2007-01-11 18:44:53 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-01-11 18:44:53 +0000 |
commit | bfa79591b3c849d8df6cd8c7eac757732a855519 (patch) | |
tree | b1c6feb041fde0ab7a876276aefd24112ea091a5 | |
parent | f368960479a1b8f7904bc2ca65a7a9cd74cc5a13 (diff) | |
download | jquery-bfa79591b3c849d8df6cd8c7eac757732a855519.tar.gz jquery-bfa79591b3c849d8df6cd8c7eac757732a855519.zip |
Added a fix for .append( Number )
-rw-r--r-- | src/jquery/jquery.js | 3 |
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" ) { |