refactor node stateClasses and stylelist calculation
[potlatch2.git] / net / systemeD / potlatch2 / controller / DragPOINode.as
index ad32f6305b4ca841a9a5bf04b21fcbcd2d320534..0f5f1227f39284224c8f95d70f711fa58762ca99 100644 (file)
@@ -5,7 +5,6 @@ package net.systemeD.potlatch2.controller {
        import net.systemeD.halcyon.Globals;
 
     public class DragPOINode extends ControllerState {
-        private var selectedNode:Node;
         private var isDraggingStarted:Boolean = false;
                private var isNew:Boolean = false;
 
@@ -55,11 +54,11 @@ package net.systemeD.potlatch2.controller {
                }
 
         override public function enterState():void {
-            controller.map.setHighlight(selectedNode, { highlight: true } );
+            controller.map.setHighlight(selectedNode, { selected: true } );
                        Globals.vars.root.addDebug("**** -> "+this);
         }
-        override public function exitState():void {
-            controller.map.setHighlight(selectedNode, { highlight: false } );
+        override public function exitState(newState:ControllerState):void {
+            controller.map.setHighlight(selectedNode, { selected: false } );
                        Globals.vars.root.addDebug("**** <- "+this);
         }
         override public function toString():String {