Move the area and tiger stateClass assignment to use EntityUI.setStateClass, and...
[potlatch2.git] / net / systemeD / halcyon / WayUI.as
index c4f853e3ddb3b3342579964d109c074d4073b72d..748a5482b998070ba2605de19e9f598594140a94 100644 (file)
@@ -192,9 +192,9 @@ package net.systemeD.halcyon {
 
             // Copy tags object, and add states
             var tags:Object = entity.getTagsCopy();
-                       tags=applyStateClasses(tags);
-                       if (Way(entity).isArea()) { tags[':area']='yes'; }
-            if (entity.isUneditedTiger() && Globals.vars.highlightTiger) { tags[':tiger']='yes'; }
+            setStateClass('area', Way(entity).isArea());
+            setStateClass('tiger', (entity.isUneditedTiger() && Globals.vars.highlightTiger));
+            tags=applyStateClasses(tags);
 
                        // Keep track of maximum stroke width for hitzone
                        var maxwidth:Number=4;