source:
trunk/workshop-routing-foss4g/web/ext/src/direct/Transaction.js
@
77
Revision 76, 699 bytes checked in by djay, 13 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | /*! |
2 | * Ext JS Library 3.4.0 |
3 | * Copyright(c) 2006-2011 Sencha Inc. |
4 | * licensing@sencha.com |
5 | * http://www.sencha.com/license |
6 | */ |
7 | /** |
8 | * @class Ext.Direct.Transaction |
9 | * @extends Object |
10 | * <p>Supporting Class for Ext.Direct (not intended to be used directly).</p> |
11 | * @constructor |
12 | * @param {Object} config |
13 | */ |
14 | Ext.Direct.Transaction = function(config){ |
15 | Ext.apply(this, config); |
16 | this.tid = ++Ext.Direct.TID; |
17 | this.retryCount = 0; |
18 | }; |
19 | Ext.Direct.Transaction.prototype = { |
20 | send: function(){ |
21 | this.provider.queueTransaction(this); |
22 | }, |
23 | |
24 | retry: function(){ |
25 | this.retryCount++; |
26 | this.send(); |
27 | }, |
28 | |
29 | getProvider: function(){ |
30 | return this.provider; |
31 | } |
32 | }; |
Note: See TracBrowser
for help on using the repository browser.