Reverse Way direction
[potlatch2.git] / net / systemeD / halcyon / WayUI.as
index ab69170ceedf2aa86bc8b27c827690ec295035f5..d6887d813339abbee3dfa59f69d17a29d2a35f97 100755 (executable)
@@ -34,6 +34,7 @@ package net.systemeD.halcyon {
             way.addEventListener(Connection.TAG_CHANGED, wayTagChanged);
             way.addEventListener(Connection.WAY_NODE_ADDED, wayNodeAdded);
             way.addEventListener(Connection.WAY_NODE_REMOVED, wayNodeRemoved);
+            way.addEventListener(Connection.WAY_REORDERED, wayReordered);
                        way.addEventListener(Connection.WAY_DELETED, wayDeleted);
                        way.addEventListener(Connection.ADDED_TO_RELATION, wayRelationAdded);
                        way.addEventListener(Connection.REMOVED_FROM_RELATION, wayRelationRemoved);
@@ -88,6 +89,10 @@ package net.systemeD.halcyon {
                private function wayDeleted(event:EntityEvent):void {
                        redraw();
                }
+        
+        private function wayReordered(event:EntityEvent):void {
+            redraw();
+        }
 
                private function init():void {
                        recalculate();