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