Hacker News new | past | comments | ask | show | jobs | submit login

Correct me if I'm wrong, but what this does is: 1) allows the code to be run in an environment where 'window' is not the global object (perhaps for testing), and 2) in a browser, gives the caller the option to isolate the module code so it's not allowed to touch 'window'.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: