Thursday, January 07, 2010

Internet explorer, Null!

What. Were. People. Thinking.

>new String(null).toString()
"null"


Ridiculous. Firefox doesn't do anything that stupid. Worse, it's broken my populate form from JSON code.


populate_data: function(report) {
for (key in report) {
if (!$(key)) {
continue;
}

$(key).value = report[key];
}
}

No comments: