Web Interface For Lite Argus Control modules
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.

41 lines
1.1 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>The source code</title>
  5. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  6. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  7. </head>
  8. <body onload="prettyPrint();">
  9. <pre class="prettyprint lang-js">/*!
  10. * Ext JS Library 3.3.1
  11. * Copyright(c) 2006-2010 Sencha Inc.
  12. * licensing@sencha.com
  13. * http://www.sencha.com/license
  14. */
  15. <div id="cls-Ext.Direct.Transaction"></div>/**
  16. * @class Ext.Direct.Transaction
  17. * @extends Object
  18. * <p>Supporting Class for Ext.Direct (not intended to be used directly).</p>
  19. * @constructor
  20. * @param {Object} config
  21. */
  22. Ext.Direct.Transaction = function(config){
  23. Ext.apply(this, config);
  24. this.tid = ++Ext.Direct.TID;
  25. this.retryCount = 0;
  26. };
  27. Ext.Direct.Transaction.prototype = {
  28. send: function(){
  29. this.provider.queueTransaction(this);
  30. },
  31. retry: function(){
  32. this.retryCount++;
  33. this.send();
  34. },
  35. getProvider: function(){
  36. return this.provider;
  37. }
  38. };</pre>
  39. </body>
  40. </html>