Hello,

Can anyone explain why this:

window.myNS = myNS || {};

causes an error?

myNS = myNS || {};

So does that.

Theses do not though.

var myNS = myNS || {};

window.myNS = window.myNS || {};

Thanks advance!