Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / src / direct / RemotingEvent.js
1 /**
2  * @class Ext.direct.RemotingEvent
3  * @extends Ext.direct.Event
4  * An event that is fired when data is received from a 
5  * {@link Ext.direct.RemotingProvider}. Contains a method to the
6  * related transaction for the direct request, see {@link #getTransaction}
7  */
8 Ext.define('Ext.direct.RemotingEvent', {
9     
10     /* Begin Definitions */
11    
12     extend: 'Ext.direct.Event',
13     
14     alias: 'direct.rpc',
15     
16     /* End Definitions */
17     
18     /**
19      * Get the transaction associated with this event.
20      * @return {Ext.direct.Transaction} The transaction
21      */
22     getTransaction: function(){
23         return this.transaction || Ext.direct.Manager.getTransaction(this.tid);
24     }
25 });