[Commits] r2265 - sandbox/tschaub/trackanimator/geoext.ux/ux/TrackAnimator/lib/GeoExt.ux

commits at geoext.org commits at geoext.org
Tue Aug 10 06:05:18 CEST 2010


Author: tschaub
Date: 2010-08-10 06:05:18 +0200 (Tue, 10 Aug 2010)
New Revision: 2265

Modified:
   sandbox/tschaub/trackanimator/geoext.ux/ux/TrackAnimator/lib/GeoExt.ux/TrackAnimator.js
Log:
Relay exceptions from store (these are currently not being fired by the ProtocolProxy).

Modified: sandbox/tschaub/trackanimator/geoext.ux/ux/TrackAnimator/lib/GeoExt.ux/TrackAnimator.js
===================================================================
--- sandbox/tschaub/trackanimator/geoext.ux/ux/TrackAnimator/lib/GeoExt.ux/TrackAnimator.js	2010-08-09 19:33:53 UTC (rev 2264)
+++ sandbox/tschaub/trackanimator/geoext.ux/ux/TrackAnimator/lib/GeoExt.ux/TrackAnimator.js	2010-08-10 04:05:18 UTC (rev 2265)
@@ -127,6 +127,22 @@
     /** private: method[initComponent]
      */
     initComponent: function() {
+
+        this.addEvents(
+            /** private: event[load]
+             *  Fires after a new set of Records has been loaded.  Listeners 
+             *  will receive the arguments included in the store load event. 
+             */
+            "load",
+
+            /** private: event[exception]
+             *  Fires if an exception occurs in the Proxy during a remote 
+             *  request.  Listeners will receive the arguments included in the 
+             *  store exception event. 
+             */
+            "exception",
+        );
+
         
         if (!this.store) {
             
@@ -174,6 +190,8 @@
             });
         }
         
+        this.relayEvents(this.store, ["load", "exception"]);
+        
         this.dateDisplay = new Ext.BoxComponent({
             cls: "gxux-trackanimator-datedisplay",
             autoEl: {



More information about the Commits mailing list