Upgrade to ExtJS 3.0.0 - Released 07/06/2009
[extjs.git] / docs / source / Event.html
1 <html>\r
2 <head>\r
3   <title>The source code</title>\r
4     <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
5     <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
6 </head>\r
7 <body  onload="prettyPrint();">\r
8     <pre class="prettyprint lang-js">Ext.Direct.Event = function(config){\r
9     Ext.apply(this, config);\r
10 }\r
11 Ext.Direct.Event.prototype = {\r
12     status: true,\r
13     getData: function(){\r
14         return this.data;\r
15     }\r
16 };\r
17 \r
18 Ext.Direct.RemotingEvent = Ext.extend(Ext.Direct.Event, {\r
19     type: 'rpc',\r
20     getTransaction: function(){\r
21         return this.transaction || Ext.Direct.getTransaction(this.tid);\r
22     }\r
23 });\r
24 \r
25 Ext.Direct.ExceptionEvent = Ext.extend(Ext.Direct.RemotingEvent, {\r
26     status: false,\r
27     type: 'exception'\r
28 });\r
29 \r
30 Ext.Direct.eventTypes = {\r
31     'rpc':  Ext.Direct.RemotingEvent,\r
32     'event':  Ext.Direct.Event,\r
33     'exception':  Ext.Direct.ExceptionEvent\r
34 };\r
35 \r
36 </pre>    \r
37 </body>\r
38 </html>