fix horrid merge bug (yay!). Implement suspend/resume events for redrawing, to speed...
[potlatch2.git] / net / systemeD / potlatch2 / TagViewer.mxml
index 98f864e..92941c0 100644 (file)
       public function setEntity(entity:Entity):void {
           if ( selectedEntity != entity ) {
               if ( selectedEntity != null )
-                  selectedEntity.removeEventListener(Connection.TAG_CHANGE, tagChanged);
+                  selectedEntity.removeEventListener(Connection.TAG_CHANGED, tagChanged);
               selectedEntity = entity;
               if ( selectedEntity != null )
-                  selectedEntity.addEventListener(Connection.TAG_CHANGE, tagChanged);
+                  selectedEntity.addEventListener(Connection.TAG_CHANGED, tagChanged);
           }
 
           if ( advancedID != null )
 
       private function removeRelationListeners():void {
           for each( var rel:Relation in listeningToRelations ) {
-              rel.removeEventListener(Connection.TAG_CHANGE, relationTagChanged);
+              rel.removeEventListener(Connection.TAG_CHANGED, relationTagChanged);
               rel.removeEventListener(Connection.RELATION_MEMBER_ADDED, entityRelationMemberChanged);
               rel.removeEventListener(Connection.RELATION_MEMBER_REMOVED, entityRelationMemberChanged);
           }
                   relations.push(props);
               }
               
-              rel.addEventListener(Connection.TAG_CHANGE, relationTagChanged);
+              rel.addEventListener(Connection.TAG_CHANGED, relationTagChanged);
               rel.addEventListener(Connection.RELATION_MEMBER_ADDED, entityRelationMemberChanged);
               rel.addEventListener(Connection.RELATION_MEMBER_REMOVED, entityRelationMemberChanged);
               listeningToRelations.push(rel);