Merge branch 'master' into snapshotserver
[potlatch2.git] / net / systemeD / halcyon / connection / Connection.as
index 148f605..ea6da9c 100644 (file)
@@ -440,7 +440,7 @@ package net.systemeD.halcyon.connection {
             return changeset;
         }
 
-        protected function addTrace(t:Object):void {
+        public function addTrace(t:Object):void {
             traces.push(t);
         }
 
@@ -448,6 +448,13 @@ package net.systemeD.halcyon.connection {
             traces = [];
         }
 
+               public function findTrace(id:int):Trace {
+                       for each (var t:Trace in traces) {
+                               if (t.id == id) return t;
+                       }
+                       return null;
+               }
+
         public function getTraces():Array {
             return traces;
         }