Author: gotcha
Date: Sun Dec 23 11:31:58 2007
New Revision: 50032
Modified:
kukit/kukit.js/branch/finish-closures/kukit/commandprocessor.js
kukit/kukit.js/branch/finish-closures/kukit/kssparser.js
kukit/kukit.js/branch/finish-closures/kukit/serveraction.js
Log:
move setupEventCollection
Modified: kukit/kukit.js/branch/finish-closures/kukit/commandprocessor.js
==============================================================================
--- kukit/kukit.js/branch/finish-closures/kukit/commandprocessor.js
(original)
+++ kukit/kukit.js/branch/finish-closures/kukit/commandprocessor.js Sun Dec
23 11:31:58 2007
@@ -104,11 +104,10 @@
};
this.addCommand = function(command) {
- this.commands[this.commands.length] = command;
-};
+ this.commands[this.commands.length] = command;
+ };
this.executeCommands = function(oper) {
- kukit.engine.beginSetupEventsCollection();
// node, eventRule, binder are given on oper, in case
// the command was called up from an event
if (typeof(oper) == 'undefined' || oper == null) {
@@ -128,7 +127,6 @@
;;; }
;;; }
}
- kukit.engine.finishSetupEventsCollection();
};
};
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 Sun Dec 23
11:31:58 2007
@@ -853,7 +853,7 @@
// Protect the error for better logging
;;; try {
this.kssSelector = new kukit.rd.KssSelector(isEvent, css, name,
- namespace, id, ppid);
+ namespace, id, ppid, kukit.eventsGlobalRegistry);
;;; } catch(e) {
;;; if (e.name == 'KssSelectorError') {
;;; // Log the message
Modified: kukit/kukit.js/branch/finish-closures/kukit/serveraction.js
==============================================================================
--- kukit/kukit.js/branch/finish-closures/kukit/serveraction.js (original)
+++ kukit/kukit.js/branch/finish-closures/kukit/serveraction.js Sun Dec 23
11:31:58 2007
@@ -193,7 +193,9 @@
// One or more valid commands to parse
var command_processor = new kukit.cp.CommandProcessor();
command_processor.parseCommands(commands, domDoc);
+ kukit.engine.beginSetupEventsCollection();
command_processor.executeCommands(this.oper);
+ kukit.engine.finishSetupEventsCollection();
};
this.processError = function(errorcommand) {
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins