RemotingEvent.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>The source code</title>
  6. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  7. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  8. <style type="text/css">
  9. .highlight { display: block; background-color: #ddd; }
  10. </style>
  11. <script type="text/javascript">
  12. function highlight() {
  13. document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
  14. }
  15. </script>
  16. </head>
  17. <body onload="prettyPrint(); highlight();">
  18. <pre class="prettyprint lang-js"><span id='Ext-direct-RemotingEvent'>/**
  19. </span> * @class Ext.direct.RemotingEvent
  20. * An event that is fired when data is received from a
  21. * {@link Ext.direct.RemotingProvider}. Contains a method to the
  22. * related transaction for the direct request, see {@link #getTransaction}
  23. */
  24. Ext.define('Ext.direct.RemotingEvent', {
  25. /* Begin Definitions */
  26. extend: 'Ext.direct.Event',
  27. alias: 'direct.rpc',
  28. /* End Definitions */
  29. <span id='Ext-direct-RemotingEvent-method-getTransaction'> /**
  30. </span> * Get the transaction associated with this event.
  31. * @return {Ext.direct.Transaction} The transaction
  32. */
  33. getTransaction: function(){
  34. return this.transaction || Ext.direct.Manager.getTransaction(this.tid);
  35. }
  36. });
  37. </pre>
  38. </body>
  39. </html>