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