diff options
author | Sindre Sorhus <sindresorhus@gmail.com> | 2012-06-15 22:17:05 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-06-15 22:29:02 -0400 |
commit | ea9ec9527647f0cea396ca536e6f34b4a4491d11 (patch) | |
tree | c88f8c888103dd5fea810ee94db7dfa2970cf520 /src/manipulation.js | |
parent | 9c28a320c3fa6dcc06de4919d24da41451843570 (diff) | |
download | jquery-ea9ec9527647f0cea396ca536e6f34b4a4491d11.tar.gz jquery-ea9ec9527647f0cea396ca536e6f34b4a4491d11.zip |
Fix #11231, (append|prepend|before|after) w/ array of jQuery objects.
Closes gh-666, thanks to @rkatic!
Diffstat (limited to 'src/manipulation.js')
-rw-r--r-- | src/manipulation.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index a7751ac82..3c64105c0 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -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], |