You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.3 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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-Transaction-method-constructor'><span id='Ext-Direct-Transaction'>/**
  19. </span></span> * @class Ext.Direct.Transaction
  20. * @extends Object
  21. * &lt;p&gt;Supporting Class for Ext.Direct (not intended to be used directly).&lt;/p&gt;
  22. * @constructor
  23. * @param {Object} config
  24. */
  25. Ext.Direct.Transaction = function(config){
  26. Ext.apply(this, config);
  27. this.tid = ++Ext.Direct.TID;
  28. this.retryCount = 0;
  29. };
  30. Ext.Direct.Transaction.prototype = {
  31. send: function(){
  32. this.provider.queueTransaction(this);
  33. },
  34. retry: function(){
  35. this.retryCount++;
  36. this.send();
  37. },
  38. getProvider: function(){
  39. return this.provider;
  40. }
  41. };</pre>
  42. </body>
  43. </html>