Prefixing pitfall: "var foo = window.foo || window.mozFoo || window.oFoo || window.msFoo || window.webkitFoo" only works if foo is prefixed.
-
-
Replying to @really_bz
@bz_moz Huh? Wouldn't an unprefixed pass the first || and get returned?3 replies 0 retweets 0 likes
Replying to @tabatkins
@tabatkins It depends on where you put the code. At global scope the var shadows the property on the proto, so window.foo tests false.
9:56 PM - 8 Jul 2012
0 replies
0 retweets
1 like
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.