mootools/mootools-core — pull request #2106 by anutron (2011-10-14 00:28:00+00:00)
Title: Minor Tweak to TypeOf

Long explanation: HtmlUnit (a headless browser implementation for unit testing) was barfing on typeOf whenever you called it with a string. That's because it evaluated "".$family as "falsy" despite being defined. An explicit check here solved the problem and now *most* of the unit tests for Core pass (not the ones that are fairly browser specific, like element measurements and whatnot).