aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2012-12-23 20:52:46 +0400
committerOleg <markelog@gmail.com>2012-12-24 03:04:30 +0400
commit9256ba5380fca27ebc70e4d1e798fa45cb30e3a2 (patch)
tree51cd4a73b997a810dc8f0b7d7ea3d48ed452e920
parent2dd2e4886b394a85b86da9fbd433706a8af9b7cd (diff)
downloadjquery-9256ba5380fca27ebc70e4d1e798fa45cb30e3a2.tar.gz
jquery-9256ba5380fca27ebc70e4d1e798fa45cb30e3a2.zip
Simplify check for empty set in jQuery#domManip
-rw-r--r--src/manipulation.js4
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;