delete points from ways
[potlatch2.git] / net / systemeD / halcyon / NodeUI.as
index 479ff6e43ffe92b7d23550820a02e111c8902c7e..b9cd32655e953b93ebadb06f8d49581d583e018d 100644 (file)
@@ -27,11 +27,16 @@ package net.systemeD.halcyon {
                        this.node = node;
                        this.heading = heading;
                        node.addEventListener(Connection.NODE_MOVED, nodeMoved);
+                       node.addEventListener(Connection.NODE_DELETED, nodeDeleted);
                }
                
                public function nodeMoved(event:Event):void {
                    updatePosition();
                }
+
+               public function nodeDeleted(event:Event):void {
+                       removeSprites();
+               }
                
                override public function redraw(sl:StyleList=null):Boolean {
                        var tags:Object = node.getTagsCopy();