From 225e33d7d170e085d922f51de480b9c7542d016c Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Thu, 15 Sep 2011 17:29:45 +0100 Subject: [PATCH] Writing loops without braces is a capital offence --- net/systemeD/potlatch2/mapfeatures/editors/ChoiceEditor.mxml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/systemeD/potlatch2/mapfeatures/editors/ChoiceEditor.mxml b/net/systemeD/potlatch2/mapfeatures/editors/ChoiceEditor.mxml index b5ee71cf..8a4d0124 100644 --- a/net/systemeD/potlatch2/mapfeatures/editors/ChoiceEditor.mxml +++ b/net/systemeD/potlatch2/mapfeatures/editors/ChoiceEditor.mxml @@ -35,9 +35,10 @@ 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; -- 2.36.1