Author: reebalazs
Date: Fri Apr 10 18:13:25 2009
New Revision: 63945
Modified:
kukit/kukit.js/trunk/doc/HISTORY.txt
kukit/kukit.js/trunk/kukit/kukit.js
kukit/kukit.js/trunk/kukit/requestmanager.js
Log:
forwardport -r63944 from 1,4 (Fix RequestManager's handling of the
sendingTimeout parameter)
Modified: kukit/kukit.js/trunk/doc/HISTORY.txt
==============================================================================
--- kukit/kukit.js/trunk/doc/HISTORY.txt (original)
+++ kukit/kukit.js/trunk/doc/HISTORY.txt Fri Apr 10 18:13:25 2009
@@ -4,15 +4,20 @@
kukit.js - 1.5dev Unreleased
- - Added blur action (which, as it doesn't need a parameter, requires the
- deactivation of the args.length check in selectorreg.js.)
- [simon]
+ - ...
MISSING, PLEASE MERGE! - Add improved demos
(insertions in tbody is not included : that demo is
still broken in IE6)
[gotcha]
+ - fix RequestManager's handling of the sendingTimeout parameter,
+ to enable setting the timeout globally from custom code, if needed.
+
+ - Added blur action (which, as it doesn't need a parameter, requires the
+ deactivation of the args.length check in selectorreg.js.)
+ [simon]
+
- Fix or improve calculateAbsoluteURL to handle absolute
and relative urls correctly, as well as get rid of the
double slash (//) issue.
Modified: kukit/kukit.js/trunk/kukit/kukit.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/kukit.js (original)
+++ kukit/kukit.js/trunk/kukit/kukit.js Fri Apr 10 18:13:25 2009
@@ -66,7 +66,7 @@
// State vars storage. This can be used from kss via a method.
this.stateVariables = {};
// instantiate request manager
- this.requestManager = new kukit.rm.RequestManager(4);
+ this.requestManager = new kukit.rm.RequestManager();
this.binderInfoRegistry = new kukit.er.BinderInfoRegistry();
// instantiate a load scheduler
this.loadScheduler = new kukit.rd.LoadActions();
Modified: kukit/kukit.js/trunk/kukit/requestmanager.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/requestmanager.js (original)
+++ kukit/kukit.js/trunk/kukit/requestmanager.js Fri Apr 10 18:13:25 2009
@@ -171,7 +171,7 @@
*/
rm.RequestManager = function () {
-this.initialize = function (name, maxNr, schedulerClass) {
+this.initialize = function (name, maxNr, schedulerClass, sendingTimeout) {
// schedulerClass is mainly provided for debugging...
this.waitingQueue = new kukit.ut.FifoQueue();
this.sentNr = 0;
@@ -206,8 +206,9 @@
this.spinnerEvents = {'off': [], 'on': []};
this.spinnerState = false;
// sending timeout in millisecs
- this.sendingTimeout = 8000;
-
+ if (typeof(sendingTimeout) != 'undefined' && sendingTimeout != null) {
+ this.sendingTimeout = sendingTimeout;
+ }
};
;;; this.getInfo = function() {
@@ -385,4 +386,7 @@
this.initialize.apply(this, arguments);
};
+// Default value of sending timeout in ms
+rm.RequestManager.prototype.sendingTimeout = 8000;
+
}(); /// MODULE END
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins