about jQuery fn declaration
<p>my two js files (<code>file1.js &amp; file2.js</code>) works but when i made some changes in <code>file2.js</code> then it doesn't work, why?.</p>

<pre><code>/* file1.js */
$(function() {
    $(".some").click(function() {
        ...
    });
});

/* file2.js */

window.onload = test();
function test() {
    $(".dragfile").draggable(function() {
        ...
    });
    $(".resize").resizable(function() {
       ....
    });
}
</code></pre>

<p>Now i make changes in <code>file2.js</code> and some functions are not working. <code>file1.js</code> remains same</p>

<pre><code>/* file2.js */
// window.onload = test(); function test() {  }

$(function() { // modified              
    $(".dragfile").draggable(function() {    // this function works
        ...
    });

    $(".resize").resizable(function() {      // this isn't working
        ...
    });
});
</code></pre>
