Upgrade to ExtJS 3.0.3 - Released 10/11/2009
[extjs.git] / src / direct / Event.js
1 /*!
2  * Ext JS Library 3.0.3
3  * Copyright(c) 2006-2009 Ext JS, LLC
4  * licensing@extjs.com
5  * http://www.extjs.com/license
6  */
7 Ext.Direct.Event = function(config){\r
8     Ext.apply(this, config);\r
9 }\r
10 Ext.Direct.Event.prototype = {\r
11     status: true,\r
12     getData: function(){\r
13         return this.data;\r
14     }\r
15 };\r
16 \r
17 Ext.Direct.RemotingEvent = Ext.extend(Ext.Direct.Event, {\r
18     type: 'rpc',\r
19     getTransaction: function(){\r
20         return this.transaction || Ext.Direct.getTransaction(this.tid);\r
21     }\r
22 });\r
23 \r
24 Ext.Direct.ExceptionEvent = Ext.extend(Ext.Direct.RemotingEvent, {\r
25     status: false,\r
26     type: 'exception'\r
27 });\r
28 \r
29 Ext.Direct.eventTypes = {\r
30     'rpc':  Ext.Direct.RemotingEvent,\r
31     'event':  Ext.Direct.Event,\r
32     'exception':  Ext.Direct.ExceptionEvent\r
33 };\r
34 \r