[Commits] r380 - sandbox/opengeo/geoexplorer/lib/GeoExt/widgets/tree
commits at geoext.org
commits at geoext.org
Tue Apr 14 20:49:55 CEST 2009
Author: tschaub
Date: 2009-04-14 20:49:55 +0200 (Tue, 14 Apr 2009)
New Revision: 380
Modified:
sandbox/opengeo/geoexplorer/lib/GeoExt/widgets/tree/LayerNode.js
sandbox/opengeo/geoexplorer/lib/GeoExt/widgets/tree/TristateCheckboxNode.js
Log:
Documenting events in addEvents.
Modified: sandbox/opengeo/geoexplorer/lib/GeoExt/widgets/tree/LayerNode.js
===================================================================
--- sandbox/opengeo/geoexplorer/lib/GeoExt/widgets/tree/LayerNode.js 2009-04-14 17:17:27 UTC (rev 379)
+++ sandbox/opengeo/geoexplorer/lib/GeoExt/widgets/tree/LayerNode.js 2009-04-14 18:49:55 UTC (rev 380)
@@ -167,7 +167,14 @@
config.checked = false;
this.defaultUI = this.defaultUI || GeoExt.tree.LayerNodeUI;
- this.addEvents.apply(this, GeoExt.tree.LayerNode.EVENT_TYPES);
+ this.addEvents(
+ /**
+ * Event: querylayerchange
+ * Notifies listener when the query layer has changed. Will be
+ * called with the new query layer as argument.
+ */
+ "querylayerchange"
+ );
Ext.apply(this, {
layer: config.layer,
@@ -311,17 +318,6 @@
});
/**
- * Constant: GeoExt.tree.LayerNode.EVENT_TYPES
- * {Array(String)} - supported event types
- *
- * Event types supported for this class, in additon to the ones inherited
- * from {<GeoExt.tree.TristateCheckboxNode>}:
- * - *querylayerchange* notifies listener when the query layer has
- * changed. Will be called with the new query layer as argument.
- */
-GeoExt.tree.LayerNode.EVENT_TYPES = ["querylayerchange"];
-
-/**
* NodeType: gx_layer
*/
Ext.tree.TreePanel.nodeTypes.gx_layer = GeoExt.tree.LayerNode;
\ No newline at end of file
Modified: sandbox/opengeo/geoexplorer/lib/GeoExt/widgets/tree/TristateCheckboxNode.js
===================================================================
--- sandbox/opengeo/geoexplorer/lib/GeoExt/widgets/tree/TristateCheckboxNode.js 2009-04-14 17:17:27 UTC (rev 379)
+++ sandbox/opengeo/geoexplorer/lib/GeoExt/widgets/tree/TristateCheckboxNode.js 2009-04-14 18:49:55 UTC (rev 380)
@@ -106,7 +106,14 @@
this.checkedCount = 0;
this.defaultUI = this.defaultUI || GeoExt.tree.TristateCheckboxNodeUI;
- this.addEvents.apply(this, GeoExt.tree.TristateCheckboxNode.EVENT_TYPES);
+ this.addEvents(
+ /**
+ * Event: childcheckchange
+ * Fired to notify a parent node that the status of its checked
+ * child nodes has changed.
+ */
+ "childcheckchange"
+ );
GeoExt.tree.TristateCheckboxNode.superclass.constructor.apply(this, arguments);
@@ -233,17 +240,6 @@
});
/**
- * Constant: EVENT_TYPES
- * {Array(String)} - supported event types
- *
- * Event types supported for this class, in additon to the ones inherited
- * from {<Ext.tree.AsyncTreeNode>}:
- * - *childcheckchange* fired to notify a parent node that the status of
- * its checked child nodes has changed
- */
-GeoExt.tree.TristateCheckboxNode.EVENT_TYPES = ["childcheckchange"];
-
-/**
* NodeType: gx_tristatecheckbox
*/
Ext.tree.TreePanel.nodeTypes.gx_tristatecheckbox = GeoExt.tree.TristateCheckboxNode;
More information about the Commits
mailing list