git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a fix, and tests, for appending empty sets of elements/strings.
[jquery.git]
/
src
/
jquery
/
jquery.js
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
b010387
..
83711de
100644
(file)
--- a/
src/jquery/jquery.js
+++ b/
src/jquery/jquery.js
@@
-1443,6
+1443,9
@@
jQuery.extend({
arg = div.childNodes;
}
arg = div.childNodes;
}
+
+ if ( arg.length === 0 )
+ continue;
if ( arg[0] == undefined )
r.push( arg );
if ( arg[0] == undefined )
r.push( arg );