Why $.extend(window, window, someobject) triggers page refresh?
<p>I have object like this:</p>

<pre><code>var example = {
    test1: 10,
    test2: 20,
    test3: 30
}
</code></pre>

<p>For some reason, I wanted to use <code>test#</code> variables without <code>example</code>, so I extended <code>window</code> object like this(using jQuery):</p>

<pre><code>$.extend(window, window, example)
</code></pre>

<p>But, whenever this function has called, page was refreshed.</p>

<p>And one more question, if I try to extend <code>document</code> in the same way, some error occurs like this:(in Chrome)</p>

<blockquote>
  <p>Error: NAMESPACE_ERR: DOM Exception 14</p>
</blockquote>

<p>Why is that? And is there any way to use variables without object(namespace) name?</p>
