mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Simplify check for empty set in jQuery#domManip
This commit is contained in:
parent
2dd2e4886b
commit
9256ba5380
@ -273,8 +273,8 @@ jQuery.fn.extend({
|
||||
});
|
||||
}
|
||||
|
||||
if ( this[0] ) {
|
||||
doc = this[0].ownerDocument;
|
||||
if ( l ) {
|
||||
doc = this[ 0 ].ownerDocument;
|
||||
fragment = doc.createDocumentFragment();
|
||||
jQuery.clean( args, doc, fragment, undefined, this );
|
||||
first = fragment.firstChild;
|
||||
|
Loading…
Reference in New Issue
Block a user