Author: gotcha
Date: Tue Dec 25 19:03:40 2007
New Revision: 50110
Modified:
kukit/kukit.js/branch/finish-closures/kukit/kssparser.js
kukit/kukit.js/branch/finish-closures/kukit/requestmanager.js
Log:
fix needed for kssparser tests
Modified: kukit/kukit.js/branch/finish-closures/kukit/kssparser.js
==============================================================================
--- kukit/kukit.js/branch/finish-closures/kukit/kssparser.js (original)
+++ kukit/kukit.js/branch/finish-closures/kukit/kssparser.js Tue Dec 25
19:03:40 2007
@@ -468,17 +468,15 @@
*/
var _PropValueInMethod = function() {
-this.initialize = function() {
- this.multiword_allowed = false;
-};
-
this.produceTxt = function(txt) {
// txt parms are returned unwrapped
this.txt = txt;
};
-this.initialize.apply(this, arguments);
+
};
_PropValueInMethod.prototype = new _PropValue();
+// this assignment needs to remain after initialization of _PropValue
+_PropValueInMethod.multiword_allowed = false;
kssp.PropValueInMethod = kukit.tk.mkParser('propValue', {
";": 'this.emitAndReturn()',
"}": 'this.emitAndReturn()',
Modified: kukit/kukit.js/branch/finish-closures/kukit/requestmanager.js
==============================================================================
--- kukit/kukit.js/branch/finish-closures/kukit/requestmanager.js
(original)
+++ kukit/kukit.js/branch/finish-closures/kukit/requestmanager.js Tue Dec
25 19:03:40 2007
@@ -30,11 +30,11 @@
rm._rid = 0;
/*
-* class _RequestItem
+* class RequestItem
*
* Request item. Encapsulates the sendout function and data.
*/
-var _RequestItem = function() {
+rm.RequestItem = function() {
this.initialize = function(sendHook, url, timeoutHook, timeout, now) {
if (typeof(now) == 'undefined') {
@@ -81,14 +81,14 @@
};
/*
-* class _TimerQueue
+* class TimerQueue
*
* the send queue. This handles timeouts, and executes
* a callback for timed out items.
* Callback is called with the request item as parameter.
*/
-var _TimerQueue = function() {
+rm.TimerQueue = function() {
this.initialize = function(callback) {
this.callback = callback;
@@ -166,7 +166,7 @@
var timeoutItem = function(item) {
self.timeoutItem(item);
};
- this.timerQueue = new _TimerQueue(timeoutItem);
+ this.timerQueue = new rm.TimerQueue(timeoutItem);
if (typeof(name) == 'undefined') {
name = null;
}
@@ -350,7 +350,7 @@
// Default value of timeout
timeout = this.sendingTimeout;
}
- var item = new _RequestItem(sendHook, url, timeoutHook, timeout,
+ var item = new rm.RequestItem(sendHook, url, timeoutHook, timeout,
now);
// Start timing the item immediately
this.timerQueue.push(item);
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins