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