actually, this is tidier
authorRichard Fairhurst <richard@systemed.net>
Mon, 14 Jun 2010 18:05:24 +0000 (18:05 +0000)
committerRichard Fairhurst <richard@systemed.net>
Mon, 14 Jun 2010 18:05:24 +0000 (18:05 +0000)
net/systemeD/potlatch2/mapfeatures/editors/RouteEditor.mxml

index 22071dc8e5b67d00bf1059d7036177eea1ebfbe7..e735b51a88bb06f037a3a1c1ad27e9e5ca5d7ca8 100644 (file)
@@ -20,7 +20,7 @@
    
     public function addRoutes(event:Event=null):void {
                routeIcons.removeAllChildren();
-               addEventListener("routes_changed", addRoutes);
+               addEventListener("relations_changed", addRoutes);
         for each(var relation:Object in matchedRelations) {
             var icon:RouteIcon = new RouteIcon();
             icon.setRoute(relation, RouteEditorFactory(_factory).icon);
        public function addToRelation():void {
                new RelationSelectPanel().init(_entity, _factory.relationTags);        
        }
-
-       override protected function relationsChanged(event:Event):void {
-               dispatchEvent(new Event("routes_changed"));
-       }
     
   ]]></mx:Script>
 </edit:RelationMemberEditor>