Added a fix for .append( Number )
authorJohn Resig <jeresig@gmail.com>
Thu, 11 Jan 2007 18:44:53 +0000 (18:44 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 11 Jan 2007 18:44:53 +0000 (18:44 +0000)
src/jquery/jquery.js

index d8fa3a6..70a16e6 100644 (file)
@@ -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" ) {