Prefixing pitfall: "var foo = window.foo || window.mozFoo || window.oFoo || window.msFoo || window.webkitFoo" only works if foo is prefixed.
@rwaldron If that statement is at global scope, the var shadows the property (which lives on Window.prototype), so window.foo is undefined.
-
-
-
@littlecalculist@rwaldron The hazard is if the global has Window.prototype on its proto chain. As in, "every single web page". - 14 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.