diff options
author | Oleg <markelog@gmail.com> | 2012-12-23 20:52:46 +0400 |
---|---|---|
committer | Oleg <markelog@gmail.com> | 2012-12-24 03:04:30 +0400 |
commit | 9256ba5380fca27ebc70e4d1e798fa45cb30e3a2 (patch) | |
tree | 51cd4a73b997a810dc8f0b7d7ea3d48ed452e920 /src/manipulation.js | |
parent | 2dd2e4886b394a85b86da9fbd433706a8af9b7cd (diff) | |
download | jquery-9256ba5380fca27ebc70e4d1e798fa45cb30e3a2.tar.gz jquery-9256ba5380fca27ebc70e4d1e798fa45cb30e3a2.zip |
Simplify check for empty set in jQuery#domManip
Diffstat (limited to 'src/manipulation.js')
-rw-r--r-- | src/manipulation.js | 4 |
1 files 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; |