Commit 6350e8a7 authored by John Resig's avatar John Resig

Added a fix for .html("") not working correctly.

parent 4b202889
...@@ -1387,6 +1387,8 @@ jQuery.extend({ ...@@ -1387,6 +1387,8 @@ jQuery.extend({
for ( var i = 0, al = a.length; i < al; i++ ) { for ( var i = 0, al = a.length; i < al; i++ ) {
var arg = a[i]; var arg = a[i];
if ( !arg ) continue;
// Convert html string into DOM nodes // Convert html string into DOM nodes
if ( typeof arg == "string" ) { if ( typeof arg == "string" ) {
// Trim whitespace, otherwise indexOf won't work as expected // Trim whitespace, otherwise indexOf won't work as expected
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment