umdjs / umd

UMD (Universal Module Definition) patterns for JavaScript modules that work everywhere.
MIT License
7.42k stars 423 forks source link

root.returnExports into returnExports #44

Closed nagaozen closed 9 years ago

nagaozen commented 10 years ago

While this points to the global object (window in browsers and Global in WSH), it doesn't work in ASP. So, by removing the root. from root.returnExports it works as its intended to.

szepeviktor commented 10 years ago

https://github.com/szepeviktor/amd-global

nagaozen commented 10 years ago

@szepeviktor your code also doesn't work.

EvanCarroll commented 9 years ago

Could you attach this to a bug request so we have actual evidence of what environment and situation causes the error?