Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git] / src / direct / Event.js
1 /*
2
3 This file is part of Ext JS 4
4
5 Copyright (c) 2011 Sencha Inc
6
7 Contact:  http://www.sencha.com/contact
8
9 GNU General Public License Usage
10 This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file.  Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
11
12 If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
13
14 */
15 /**
16  * @class Ext.direct.Event
17  * A base class for all Ext.direct events. An event is
18  * created after some kind of interaction with the server.
19  * The event class is essentially just a data structure
20  * to hold a Direct response.
21  */
22 Ext.define('Ext.direct.Event', {
23
24     /* Begin Definitions */
25
26     alias: 'direct.event',
27
28     requires: ['Ext.direct.Manager'],
29
30     /* End Definitions */
31
32     status: true,
33
34     /**
35      * Creates new Event.
36      * @param {Object} config (optional) Config object.
37      */
38     constructor: function(config) {
39         Ext.apply(this, config);
40     },
41
42     /**
43      * Return the raw data for this event.
44      * @return {Object} The data from the event
45      */
46     getData: function(){
47         return this.data;
48     }
49 });
50