jQuery wrap is forcing multiple document ready callbacks
<p>I have the following code:</p>

<pre><code>function CreateRoundbox(selector, scope) {
    $(selector).wrap('&lt;div class=\"' + scope + ' dialog\"&gt;&lt;div class=\"bd\"&gt;&lt;div class=\"c\"&gt;&lt;div class=\"s\"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;');
    $('div.' + scope).prepend('&lt;div class=\"hd\"&gt;&lt;div class=\"c\"&gt;&lt;/div&gt;&lt;/div&gt;').append('&lt;div class=\"ft\"&gt;&lt;div class=\"c\"&gt;&lt;/div&gt;&lt;/div&gt;');
}
</code></pre>

<p>Whenever I use this function and the "wrap" method is called it causes the $(document).ready() method to fire for a second time on the page.  Here is the call to the function (this lives in a document ready block):</p>

<pre><code>CreateRoundbox(".roundbox", "roundbox-wrapper");      
</code></pre>

<p>Has anyone ran into this before?  Am I using wrap wrong?</p>

<p><strong>UPDATE</strong></p>

<p>Fixed usage line, I accidentally added a dot in the scope literal</p>
