From 8abb5f96b0e09b5df857fe4a13d26aba00953fb8 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Tue, 26 Aug 2008 00:53:21 +0000 Subject: [PATCH] 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 --- src/as/com/threerings/util/Log.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/as/com/threerings/util/Log.as b/src/as/com/threerings/util/Log.as index 74d676407..ba6449808 100644 --- a/src/as/com/threerings/util/Log.as +++ b/src/as/com/threerings/util/Log.as @@ -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])); }