]> source.dussan.org Git - jquery.git/commitdiff
Simplify check for empty set in jQuery#domManip
authorOleg <markelog@gmail.com>
Sun, 23 Dec 2012 16:52:46 +0000 (20:52 +0400)
committerOleg <markelog@gmail.com>
Sun, 23 Dec 2012 23:04:30 +0000 (03:04 +0400)
src/manipulation.js

index 665e53b6173b498b0a1a3b9497d7c760ac5ef310..bc07aef02170a18198be0db19bc7b4c1b59e6ed4 100644 (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;