jquery detach(): [object Object] has no method 'replace'
<p><em>Uncaught TypeError: Object [object Object] has no method 'replace'</em>  to be precise. The code:</p>

<pre><code>var controls = $('#head_hidden').children().eq(0);
var item_mouse_over = function() {
    $(this).append(controls);
}
var item_mouse_leave = function() {
    $(this).detach(controls); //this is the problematic strig
}

$('.item').mouseover(item_mouse_over);
$('.item').mouseleave(item_mouse_leave);
</code></pre>

<p>Here is <a href="http://jsfiddle.net/scythargon/nmWcj/" rel="nofollow">jsfiddle</a> explanation. With item_mouse_over() I add "controls" to element, but with item_mouse_leave() I could not remove them:(</p>
