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