From: Oleg Date: Sun, 23 Dec 2012 16:52:46 +0000 (+0400) Subject: Simplify check for empty set in jQuery#domManip X-Git-Tag: 2.0.0b1~59^2~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9256ba5380fca27ebc70e4d1e798fa45cb30e3a2;p=jquery.git Simplify check for empty set in jQuery#domManip --- diff --git a/src/manipulation.js b/src/manipulation.js index 665e53b61..bc07aef02 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -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;