Run js function once when fired more than once
<p>I have a Div that uses jQuery to load a file/contents with a javascript function..</p>

<pre><code>function DoWork() {
    // Do Stuff
}
</code></pre>

<p>Let's say the user can reload the Div and pull the same file/contents with the same js function DoWork(). The problem is, when the file is reloaded, the previous loaded function DoWork() is still running. How can I kill the previous fired DoWork() and restart it?</p>
