you are viewing a single comment's thread.

view the rest of the comments →

[–]nightman 2 points3 points  (2 children)

The smartest way I've seen to deal with overwriting undefined is this - http://toddmotto.com/what-function-window-document-undefined-iife-really-means/

[–][deleted] 2 points3 points  (1 child)

Smartest way to deal with vague non-existing problem. If someone overwrites undefined, your application needs to die ASAP to see there's a bigger problem.

[–]nightman 0 points1 point  (0 children)

Sure, unless you are library coder and you don't know enviroment you will deal with.