stop working of function from another function
<p>I have two functions</p>

<pre><code>function1()
{
     //...
}
</code></pre>

<p>in <code>function1</code> i make ajax requests and load an image</p>

<p>there is another function - <code>function2</code> where i call <code>function1</code> to load an image.</p>

<p>now, what is the question. </p>

<p>How can i stop propagation of <code>function1</code> before i will call it again in <code>function2</code>?</p>

<pre><code>function2()
    {
        // ...
        // how stop old propogation of function1 here?
        function1(); //call function1 again

    }
</code></pre>

<p>Thanks</p>
