remove "Loading data..." once a GPX track has loaded
authorRichard Fairhurst <richard@systemed.net>
Fri, 5 Nov 2010 14:34:36 +0000 (14:34 +0000)
committerRichard Fairhurst <richard@systemed.net>
Fri, 5 Nov 2010 14:34:36 +0000 (14:34 +0000)
net/systemeD/halcyon/connection/XMLConnection.as

index c1a7c3b..b2e7624 100644 (file)
@@ -374,7 +374,11 @@ package net.systemeD.halcyon.connection {
         }
 
         override public function fetchTrace(id:Number, callback:Function):void {
-            sendOAuthGet(Connection.apiBaseURL+"gpx/"+id+"/data.xml", callback, errorOnMapLoad, mapLoadStatus); // needs error handlers
+            sendOAuthGet(Connection.apiBaseURL+"gpx/"+id+"/data.xml", 
+                               function(e:Event):void { 
+                       dispatchEvent(new Event(LOAD_COMPLETED));
+                                       callback(e);
+                               }, errorOnMapLoad, mapLoadStatus); // needs error handlers
             dispatchEvent(new Event(LOAD_STARTED)); //specifc to map or reusable?
         }
        }