From 7c7b4fdd105a5ee5e18cf65dc81a4fc01bc65d27 Mon Sep 17 00:00:00 2001 From: Nathan Curtis Date: Tue, 6 May 2008 17:03:45 +0000 Subject: [PATCH] Add clear() functionality git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@482 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/as/com/threerings/flex/PlayerList.as | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/as/com/threerings/flex/PlayerList.as b/src/as/com/threerings/flex/PlayerList.as index 98eae006..3393baec 100644 --- a/src/as/com/threerings/flex/PlayerList.as +++ b/src/as/com/threerings/flex/PlayerList.as @@ -67,6 +67,12 @@ public class PlayerList extends VBox _players.sort = sort; } + public function clear () :void + { + _values = new Dictionary(); + _players.removeAll(); + } + /** * The PlayerList is meant to include data that is at least as complicated as a Name, so to * keep things simple and extendable, we require Comparable. This allows the issue of passing