source: Dev/trunk/src/client/dojox/charting/action2d/Base.js @ 532

Last change on this file since 532 was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 1.0 KB
Line 
1define(["dojo/_base/lang", "dojo/_base/declare", "dojo/Evented"],
2        function(lang, declare, Evented){
3
4        return declare("dojox.charting.action2d.Base", Evented, {
5                // summary:
6                //              Base action class for plot and chart actions.
7       
8                constructor: function(chart, plot){
9                        // summary:
10                        //              Create a new base action.  This can either be a plot or a chart action.
11                        // chart: dojox/charting/Chart
12                        //              The chart this action applies to.
13                        // plot: String|dojox/charting/plot2d/Base?
14                        //              Optional target plot for this action.  Default is "default".
15                        this.chart = chart;
16                        this.plot = plot ? (lang.isString(plot) ? this.chart.getPlot(plot) : plot) : this.chart.getPlot("default");
17                },
18       
19                connect: function(){
20                        // summary:
21                        //              Connect this action to the plot or the chart.
22                },
23       
24                disconnect: function(){
25                        // summary:
26                        //              Disconnect this action from the plot or the chart.
27                },
28               
29                destroy: function(){
30                        // summary:
31                        //              Do any cleanup needed when destroying parent elements.
32                        this.disconnect();
33                }
34        });
35
36});
Note: See TracBrowser for help on using the repository browser.