JQuery wrapInner trigers jQuery(document).ready twice
<p>I am using the <code>wrapInner</code> function but these triggers my <code>jQuery(document).ready</code> event once again.</p>

<p>Is this the normal behaviour?
How can this be avoided?</p>

<p>Thanks</p>

<p>Update:</p>

<pre><code>miscellaneous : function(){
            $('#nav .active a').bind('click',function(){ return false });
            $('.type-a, .type-b, .type-c, .type-d, .type-e').append('&lt;div class="type"&gt;&lt;/div&gt;');
            //$('body').wrapInner('&lt;div id="root"&gt;&lt;/div&gt;');
            $('#content').wrap('&lt;div id="content-wrapper"&gt;&lt;/div&gt;');

            $('#filter .time &gt; li').append('&lt;span class="arrow"&gt;&lt;/span&gt;');
            $('#filter .category li a').wrapInner('&lt;span&gt;&lt;/span&gt;');                 
            $('#filter .time &gt; li &gt; ul').hide();    
            $('#filter .time &gt; li').live('mouseenter',function(){
                if($(this).children('ul').css('display') != 'block'){
                    $(this).children('ul').fadeIn('fast',function(){
                        $(this).css({'display':'block'});
                    });
                }
            }).live('mouseleave',function(){
                if($(this).children('ul').css('display') != 'none'){
                    $(this).children('ul').fadeOut('fast',function(){
                        $(this).css({'display':'none'});
                    });
                }
            });
        }
</code></pre>

<p>If I uncomment the 4th line the following alert is shown twice. 
With the line commented the alert is shown only once.</p>

<pre><code>jQuery(document).ready(function($) {
    alert('in ready');              
    });
</code></pre>
