by locci · 15y ago · 0 comments
Of course due to a bug in the old (v3) spec, you could redefine the builtin undefined as well as some other builtins like NaN and Infinity, but you shouldn't really be doing that and the spec at least is now fixed.
In the meanwhile, to fight that, this is a commonly used pattern for browsers: (function(window,undefined) {
// code //
})(this);
No comments yet.