Fix #11231, (append|prepend|before|after) w/ array of jQuery objects.

Closes gh-666, thanks to @rkatic!
This commit is contained in:
Sindre Sorhus
2012-06-15 22:17:05 -04:00
committed by Dave Methvin
parent 9c28a320c3
commit ea9ec95276
2 changed files with 29 additions and 4 deletions

View File

@@ -289,6 +289,10 @@ jQuery.fn.extend({
},
domManip: function( args, table, callback ) {
// Flatten any nested arrays
args = [].concat.apply( [], args );
var results, first, fragment, iNoClone,
i = 0,
value = args[0],