Simple but facepalm, just the same
-
if (typeof(options) != "undefined") {
options = {};
}its the anti-default
this probably isnt a big wtf, but its one more straw in several barns of rotting straw ive had on my back from this codebase
-
When are people going to learn that typeof isn't a function?
-
<font face="terminal,monaco">options = options || {};</font>