summaryrefslogtreecommitdiff
path: root/js/dojo/dojox/charting/action2d/ChartAction.js
blob: a46d86f3d20fe733225c3afa33e1e4d30264e891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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;
			}
		}
});

});