Line | |
---|
1 | /*! |
---|
2 | * Ext JS Library 3.0.0 |
---|
3 | * Copyright(c) 2006-2009 Ext JS, LLC |
---|
4 | * licensing@extjs.com |
---|
5 | * http://www.extjs.com/license |
---|
6 | */ |
---|
7 | Ext.Direct.Event = function(config){ |
---|
8 | Ext.apply(this, config); |
---|
9 | } |
---|
10 | Ext.Direct.Event.prototype = { |
---|
11 | status: true, |
---|
12 | getData: function(){ |
---|
13 | return this.data; |
---|
14 | } |
---|
15 | }; |
---|
16 | |
---|
17 | Ext.Direct.RemotingEvent = Ext.extend(Ext.Direct.Event, { |
---|
18 | type: 'rpc', |
---|
19 | getTransaction: function(){ |
---|
20 | return this.transaction || Ext.Direct.getTransaction(this.tid); |
---|
21 | } |
---|
22 | }); |
---|
23 | |
---|
24 | Ext.Direct.ExceptionEvent = Ext.extend(Ext.Direct.RemotingEvent, { |
---|
25 | status: false, |
---|
26 | type: 'exception' |
---|
27 | }); |
---|
28 | |
---|
29 | Ext.Direct.eventTypes = { |
---|
30 | 'rpc': Ext.Direct.RemotingEvent, |
---|
31 | 'event': Ext.Direct.Event, |
---|
32 | 'exception': Ext.Direct.ExceptionEvent |
---|
33 | }; |
---|
34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.