From 9256ba5380fca27ebc70e4d1e798fa45cb30e3a2 Mon Sep 17 00:00:00 2001 From: Oleg Date: Sun, 23 Dec 2012 20:52:46 +0400 Subject: [PATCH] Simplify check for empty set in jQuery#domManip --- src/manipulation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5