wrap() executing javascripts again

wrap() executing javascripts again


This code worked fine when i used 1.1.2:
$('table.main').wrap('<div class="galaxybg"></div>');
(table.main contains <script> tags in some of the cells).
After updating to the recent 1.2.1, this code causes the scripts in
<script> tags to be executed again.
I fixed that for me with $('table.main script').remove(); but imho
this behaviour is a bug.