Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / src / direct / Event.js
1 /**
2  * @class Ext.direct.Event
3  * A base class for all Ext.direct events. An event is
4  * created after some kind of interaction with the server.
5  * The event class is essentially just a data structure
6  * to hold a direct response.
7  * 
8  * @constructor
9  * @param {Object} config The config object
10  */
11 Ext.define('Ext.direct.Event', {
12     
13     /* Begin Definitions */
14    
15     alias: 'direct.event',
16     
17     requires: ['Ext.direct.Manager'],
18     
19     /* End Definitions */
20    
21     status: true,
22     
23     constructor: function(config) {
24         Ext.apply(this, config);
25     },
26     
27     /**
28      * Return the raw data for this event.
29      * @return {Object} The data from the event
30      */
31     getData: function(){
32         return this.data;
33     }
34 });