Upgrade to ExtJS 3.2.0 - Released 03/30/2010
[extjs.git] / docs / source / Transaction.html
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.2.0
11  * Copyright(c) 2006-2010 Ext JS, Inc.
12  * licensing@extjs.com
13  * http://www.extjs.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
32     retry: function(){
33         this.retryCount++;
34         this.send();
35     },
36
37     getProvider: function(){
38         return this.provider;
39     }
40 };</pre>    
41 </body>
42 </html>