]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * Base class for all Ext Direct events. An event is\r | |
3 | * created after some kind of interaction with the server.\r | |
4 | * The event class is essentially just a data structure\r | |
5 | * to hold a Direct response.\r | |
6 | */\r | |
7 | Ext.define('Ext.direct.Event', {\r | |
8 | alias: 'direct.event',\r | |
9 | \r | |
10 | status: true,\r | |
11 | \r | |
12 | /**\r | |
13 | * Creates new Event.\r | |
14 | * @param {Object} [config] Config object.\r | |
15 | */\r | |
16 | constructor: function(config) {\r | |
17 | Ext.apply(this, config);\r | |
18 | },\r | |
19 | \r | |
20 | /**\r | |
21 | * Return the name for this event.\r | |
22 | * @return {String} The name of event\r | |
23 | */\r | |
24 | getName: function() {\r | |
25 | return this.name;\r | |
26 | },\r | |
27 | \r | |
28 | /**\r | |
29 | * Return the raw data for this event.\r | |
30 | * @return {Mixed} The data from the event\r | |
31 | */\r | |
32 | getData: function() {\r | |
33 | return this.data;\r | |
34 | }\r | |
35 | });\r |