Remove compiler warnings (please check before committing!)
authorRichard Fairhurst <richard@systemeD.net>
Sun, 25 Mar 2012 18:24:22 +0000 (19:24 +0100)
committerRichard Fairhurst <richard@systemeD.net>
Sun, 25 Mar 2012 18:24:22 +0000 (19:24 +0100)
net/systemeD/potlatch2/mapfeatures/Feature.as

index a1d7c31..3d4407b 100644 (file)
@@ -201,11 +201,10 @@ package net.systemeD.potlatch2.mapfeatures {
             var txt:String = icon.children().toXMLString();
             // Args to this function: "string matched", "substring 1", "substring 2"..., index of match, whole string
             var replaceTag:Function = function():String {
-               var matchnum=0;
-               var args=arguments;
+               var matchnum:uint=0;
                var value:String = null;
-               while ((value == null || value == "") && matchnum < args.length - 3  ) {
-                  value = entity.getTag(args[matchnum + 1]);
+               while ((value == null || value == "") && matchnum < arguments.length - 3  ) {
+                  value = entity.getTag(arguments[matchnum + 1]);
                   matchnum++;
                }
                 return value == null ? "" : htmlEscape(value);