How do I call a function as a parameter at the end of a jQuery command chain?
<p>...if the last command doesnt have a callback function? Like for example</p>

<pre><code>$(something).remove(other_thing).append(new_thing)
</code></pre>

<p>Append doesnt have a callback function, so my question is, is there a jQuery method (or other way) to call a passed function after a chain of commands? The function doesnt have to affect the current selection.</p>

<p><strong>EDIT</strong>: I know the methods in this example shouldnt take long so a callback wouldnt be necessary, but that was just the first example I could think of. so please think of it as if this wasnt the case</p>
