Upgrade to ExtJS 3.0.0 - Released 07/06/2009
[extjs.git] / docs / source / Transaction.html
1 <html>\r
2 <head>\r
3   <title>The source code</title>\r
4     <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
5     <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
6 </head>\r
7 <body  onload="prettyPrint();">\r
8     <pre class="prettyprint lang-js"><div id="cls-Ext.Direct.Transaction"></div>/**\r
9  * @class Ext.Direct.Transaction\r
10  * @extends Object\r
11  * <p>Supporting Class for Ext.Direct (not intended to be used directly).</p>\r
12  * @constructor\r
13  * @param {Object} config\r
14  */\r
15 Ext.Direct.Transaction = function(config){\r
16     Ext.apply(this, config);\r
17     this.tid = ++Ext.Direct.TID;\r
18     this.retryCount = 0;\r
19 };\r
20 Ext.Direct.Transaction.prototype = {\r
21     send: function(){\r
22         this.provider.queueTransaction(this);\r
23     },\r
24 \r
25     retry: function(){\r
26         this.retryCount++;\r
27         this.send();\r
28     },\r
29 \r
30     getProvider: function(){\r
31         return this.provider;\r
32     }\r
33 };</pre>    \r
34 </body>\r
35 </html>