the proper way to write an initialize function
<p>I want to use an initialization function that will be called after a user visits a part of the application, but after that first visit I don't want to initialize anymore. A simple way to do this is using a flag and an if-statement, but there is a nicer solution to this problem:
in other languages I changed the body of the init function so that after the call of this method.</p>

<p>Can this be done in Javascript too? I wrote something like this, but eclipse says that it is an illegal assignment:</p>

<pre><code>function initEdit(){
...

this = function() {};
}
</code></pre>
