X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/src/direct/RemotingEvent.js diff --git a/src/direct/RemotingEvent.js b/src/direct/RemotingEvent.js new file mode 100644 index 00000000..d8a037d9 --- /dev/null +++ b/src/direct/RemotingEvent.js @@ -0,0 +1,25 @@ +/** + * @class Ext.direct.RemotingEvent + * @extends Ext.direct.Event + * An event that is fired when data is received from a + * {@link Ext.direct.RemotingProvider}. Contains a method to the + * related transaction for the direct request, see {@link #getTransaction} + */ +Ext.define('Ext.direct.RemotingEvent', { + + /* Begin Definitions */ + + extend: 'Ext.direct.Event', + + alias: 'direct.rpc', + + /* End Definitions */ + + /** + * Get the transaction associated with this event. + * @return {Ext.direct.Transaction} The transaction + */ + getTransaction: function(){ + return this.transaction || Ext.direct.Manager.getTransaction(this.tid); + } +});