Jquery | Function inside same function. It bad practice?
<p>I am using this function for easiness, as I am going to use fadeTo a lot:</p>

<pre><code>function fade_to(div, speed, opacity, after_fade) {
    $(div).fadeTo(speed, opacity, after_fade);
}
</code></pre>

<p>Then I am calling the same function for after_fade parameter:</p>

<pre><code>fade_to('#div', 3000, 1, function() { fade_to('#another_div', 3000, 1)});
</code></pre>

<p>Is that a bad thing to do? Will I have speed/smoothness issues?
Is it better to just use jQuery's default fadeTo function?</p>

<p>Thanks!</p>
