javascript find anonymous reference
<p>I have this inside the HTML that is creating an object in JavaScript</p>

<pre><code>var myObject = new MyClass();
</code></pre>

<p>I know that after this I can refer to myObject and use it.</p>

<p>The problem is that I have the instantiation done in an anonymous way e.g.</p>

<pre><code>new MyClass()
</code></pre>

<p>Is there a way to find then the instance so I can reuse it later in the code ? Any idea appreciated.</p>
