source: trunk/web/addons/job_monarch/lib/extjs-30/src/direct/Event.js @ 625

Last change on this file since 625 was 625, checked in by ramonb, 15 years ago

lib/extjs-30:

  • new ExtJS 3.0
File size: 778 bytes
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 */
7Ext.Direct.Event = function(config){
8    Ext.apply(this, config);
9}
10Ext.Direct.Event.prototype = {
11    status: true,
12    getData: function(){
13        return this.data;
14    }
15};
16
17Ext.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
24Ext.Direct.ExceptionEvent = Ext.extend(Ext.Direct.RemotingEvent, {
25    status: false,
26    type: 'exception'
27});
28
29Ext.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.