source:
trunk/workshop-routing-foss4g/web/ext/src/direct/Event.js
@
81
Revision 76, 753 bytes checked in by djay, 13 years ago (diff) | |
---|---|
|
Rev | Line | |
---|---|---|
[76] | 1 | /*! |
2 | * Ext JS Library 3.4.0 | |
3 | * Copyright(c) 2006-2011 Sencha Inc. | |
4 | * licensing@sencha.com | |
5 | * http://www.sencha.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 | }; |
Note: See TracBrowser
for help on using the repository browser.