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