Checking for undefined variable not working in chrome
<p>I am checking if a variable is defined or not. It is working right in Firefox and when it comes to Chrome it is not working:</p>

<pre><code>if(window[myClass] == undefined)
{
    return;
}
</code></pre>

<p>If the variable is not defined it should return.</p>

<p>I am using <code>window[myClass]</code> because I am taking name of the id from <code>onclick</code> event and using same named variable as id if variable is defined then else part should or if not defined then if part should work. </p>
