Simplify check for empty set in jQuery#domManip

This commit is contained in:
Oleg 2012-12-23 20:52:46 +04:00
parent 2dd2e4886b
commit 9256ba5380

View File

@ -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;