Commit 9256ba53 authored by Oleg's avatar Oleg

Simplify check for empty set in jQuery#domManip

parent 2dd2e488
...@@ -273,8 +273,8 @@ jQuery.fn.extend({ ...@@ -273,8 +273,8 @@ jQuery.fn.extend({
}); });
} }
if ( this[0] ) { if ( l ) {
doc = this[0].ownerDocument; doc = this[ 0 ].ownerDocument;
fragment = doc.createDocumentFragment(); fragment = doc.createDocumentFragment();
jQuery.clean( args, doc, fragment, undefined, this ); jQuery.clean( args, doc, fragment, undefined, this );
first = fragment.firstChild; first = fragment.firstChild;
......
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