Added a fix for .html("") not working correctly.
authorJohn Resig <jeresig@gmail.com>
Thu, 11 Jan 2007 17:24:14 +0000 (17:24 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 11 Jan 2007 17:24:14 +0000 (17:24 +0000)
src/jquery/jquery.js

index 6070389..d8fa3a6 100644 (file)
@@ -1386,6 +1386,8 @@ jQuery.extend({
 
                for ( var i = 0, al = a.length; i < al; i++ ) {
                        var arg = a[i];
+
+                       if ( !arg ) continue;
                        
                         // Convert html string into DOM nodes
                        if ( typeof arg == "string" ) {