Alas, it was too good to be true, and I had to track down and debug something.
Damn actionscript. "for" vs "for each" and each one uses (bla in foo), which is also a statement in itself. That and the optional semicolons. I bet the parser for the compiler was fun to write. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5342 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -120,7 +120,7 @@ public class Log
|
||||
*/
|
||||
public static function setLevels (settingString :String) :void
|
||||
{
|
||||
for (var module :String in settingString.split(";")) {
|
||||
for each (var module :String in settingString.split(";")) {
|
||||
var setting :Array = module.split(":");
|
||||
_setLevels[setting[0]] = stringToLevel(String(setting[1]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user