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