jQuery 1.5.2 detach = error
<p>I have a problem with the jQuery <code>detach()</code> function. See the <a href="http://jsfiddle.net/kVWJ5/" rel="nofollow">Example page</a>. 
The chrome throws this error: </p>

<p><code>Uncaught TypeError: Object [object Object] has no method 'replaced'</code>.
and Firefox/Firebug this one:
'c.replace is not a function' 
in the jQuery File</p>

<p>The HTML code:</p>

<pre><code>&lt;nav class="menu center"&gt;
            &lt;ul&gt;
                &lt;li&gt;&lt;a href="#" data-link="home"&gt;Home&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="#"&gt;1&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="#"&gt;3&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="#"&gt;5&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="#"&gt;6&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="#"&gt;7&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="#"&gt;X&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="#"&gt;Z4&lt;/a&gt;&lt;/li&gt;

            &lt;/ul&gt;
        &lt;/nav&gt;
</code></pre>

<p></p>

<pre><code>&lt;div  id="RTMPClient"&gt;&lt;p&gt;text&lt;/p&gt;&lt;/div&gt;
        &lt;/section&gt;
</code></pre>

<p>The JavaScript code:</p>

<pre><code>$(".menu").delegate("a", "click", function() {
    var dataValue = $(this).data("link");
    var contentDiv = $(".flash");
    var flash = $(contentDiv).find("#RTMPClient");
    if (dataValue=='home') {
        contentDiv.prepend(flash);
    } else {
       contentDiv.detach(flash);
    }

});
</code></pre>

<p>Can anyone tell me what is causing this error?</p>
