summaryrefslogtreecommitdiff
path: root/js/dojo/dojox/charting/action2d/ChartAction.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/dojo/dojox/charting/action2d/ChartAction.js')
-rw-r--r--js/dojo/dojox/charting/action2d/ChartAction.js39
1 files changed, 39 insertions, 0 deletions
diff --git a/js/dojo/dojox/charting/action2d/ChartAction.js b/js/dojo/dojox/charting/action2d/ChartAction.js
new file mode 100644
index 0000000..a46d86f
--- /dev/null
+++ b/js/dojo/dojox/charting/action2d/ChartAction.js
@@ -0,0 +1,39 @@
+//>>built
+define("dojox/charting/action2d/ChartAction", ["dojo/_base/connect", "dojo/_base/declare", "./Base"],
+ function(hub, declare, Base){
+ /*=====
+ var Base = dojox.charting.action2d.Base;
+ =====*/
+ return declare("dojox.charting.action2d.ChartAction", Base, {
+ // summary:
+ // Base action class for chart actions.
+
+ constructor: function(chart, plot){
+ // summary:
+ // Create a new base chart action.
+ // chart: dojox.charting.Chart
+ // The chart this action applies to.
+ // plot: String?|dojox.charting.plot2d.Base?
+ // Optional target plot for this chart action. Default is "default".
+ },
+
+ connect: function(){
+ // summary:
+ // Connect this action to the chart.
+ for(var i = 0; i < this._listeners.length; ++i){
+ this._listeners[i].handle = hub.connect(this.chart.node, this._listeners[i].eventName,
+ this, this._listeners[i].methodName);
+ }
+ },
+
+ disconnect: function(){
+ // summary:
+ // Disconnect this action from the chart.
+ for(var i = 0; i < this._listeners.length; ++i){
+ hub.disconnect(this._listeners[i].handle);
+ delete this._listeners[i].handle;
+ }
+ }
+});
+
+});