[KSS-checkins] r36083 - kukit/kukit.js/trunk/kukit
reebalazs at codespeak.net
reebalazs at codespeak.net
Mon Jan 1 11:17:02 CET 2007
Author: reebalazs
Date: Mon Jan 1 11:16:58 2007
New Revision: 36083
Modified:
kukit/kukit.js/trunk/kukit/requestmanager.js
kukit/kukit.js/trunk/kukit/utils.js
Log:
Put in a few ; as preparation for full compression in the future
Modified: kukit/kukit.js/trunk/kukit/requestmanager.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/requestmanager.js (original)
+++ kukit/kukit.js/trunk/kukit/requestmanager.js Mon Jan 1 11:16:58 2007
@@ -79,7 +79,7 @@
*/
kukit.rm.TimerQueue = function(callback) {
- this.callback = callback
+ this.callback = callback;
this.queue = new kukit.ut.SortedQueue(this._sentSort);
this.nr = 0;
};
@@ -202,7 +202,7 @@
kukit.rm.RequestManager.prototype.pushWaitingRequest = function(item, now) {
this.waitingQueue.push(item);
// Set the timeout
- this.checkTimeout(now)
+ this.checkTimeout(now);
};
kukit.rm.RequestManager.prototype.popWaitingRequest = function() {
@@ -225,7 +225,7 @@
// Set the spinner state
this.setSpinnerState(true);
// Set the timeout
- this.checkTimeout(now)
+ this.checkTimeout(now);
// Wrap up the callback func. It will be called
// with the item as first parameter.
var self = this;
Modified: kukit/kukit.js/trunk/kukit/utils.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/utils.js (original)
+++ kukit/kukit.js/trunk/kukit/utils.js Mon Jan 1 11:16:58 2007
@@ -115,7 +115,7 @@
return this.name + ': ' + this.message;
}
}
- return err
+ return err;
}
exc.prototype.__init__ = function(name, message) {
var kw = {};
@@ -123,7 +123,7 @@
kw.message = message;
return kw;
}
- return exc
+ return exc;
};
@@ -171,9 +171,13 @@
};
kukit.ut.SortedQueue.prototype.comparefunc = function(a, b) {
- if (a < b) return -1;
- else if (a > b) return +1;
- else return 0;
+ if (a < b) {
+ return -1;
+ } else if (a > b) {
+ return +1;
+ } else {
+ return 0;
+ }
};
kukit.ut.SortedQueue.prototype.reset = function() {
@@ -273,7 +277,7 @@
var self = this;
var func = function() {
self.timeout();
- }
+ };
this.timer = setTimeout(func, this.delay);
};
@@ -315,11 +319,11 @@
var self = this;
var func = function() {
self.timeout();
- }
+ };
this.timer = setTimeout(func, ts - now);
} else {
// if in the past, run immediately
- this.func()
+ this.func();
}
};
@@ -380,7 +384,7 @@
kukit.log('Starting ' + item.remark);
var ts_start = (new Date()).valueOf();
try {
- item.func()
+ item.func();
} catch(e) {
this.lock = false;
throw(e);
More information about the Kukit-checkins
mailing list