Fix missing autocomplete bug, caused by some utterly bogus Flex 4 behaviour.
authorRichard Fairhurst <richard@systemeD.net>
Sun, 2 Oct 2011 23:56:40 +0000 (00:56 +0100)
committerRichard Fairhurst <richard@systemeD.net>
Sun, 2 Oct 2011 23:56:40 +0000 (00:56 +0100)
Fuck you, Adobe.

net/systemeD/potlatch2/mapfeatures/MapFeatures.as

index 605d0a8..5dc5b02 100644 (file)
@@ -61,7 +61,8 @@ package net.systemeD.potlatch2.mapfeatures {
                 }
 
                 for each (var inputSet:XML in feature..inputSet) {
-                    tagsFromInputSet(definition.inputSet.(@id == String(inputSet.@ref)), f);
+                    var inputSetName:String=inputSet.@ref;     // Flex 4 breaks if this is included directly in the line below
+                    tagsFromInputSet(definition.inputSet.(@id == inputSetName), f);
                 }
             }