Writing loops without braces is a capital offence
authorAndy Allan <andy@gravitystorm.co.uk>
Thu, 15 Sep 2011 16:29:45 +0000 (17:29 +0100)
committerAndy Allan <andy@gravitystorm.co.uk>
Thu, 15 Sep 2011 16:29:45 +0000 (17:29 +0100)
net/systemeD/potlatch2/mapfeatures/editors/ChoiceEditor.mxml

index b5ee71c..8a4d012 100644 (file)
               trace("processing choices for "+ _factory.key); // or .direcction
               trace("factory is now "+ _factory);
               _choices = new ArrayCollection();
-              for each ( var choice:Choice in ChoiceEditorFactory(_factory).choices )
+              for each ( var choice:Choice in ChoiceEditorFactory(_factory).choices ) {
                   trace("added item: "+choice.value);
                   _choices.addItem(choice);
+              }
               _choices.addItem(createUnsetChoice());
           }
           return _choices;