[KSS-checkins] r49547 - kukit/kukit.js/branch/finish-closures/kukit
gotcha at codespeak.net
gotcha at codespeak.net
Sat Dec 8 14:12:08 CET 2007
Author: gotcha
Date: Sat Dec 8 14:12:05 2007
New Revision: 49547
Modified:
kukit/kukit.js/branch/finish-closures/kukit/commandprocessor.js
Log:
try other way of expressing prototypes
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 Sat Dec 8 14:12:05 2007
@@ -28,7 +28,9 @@
this.commands = new Array();
};
-cp.CommandProcessor.prototype.parseCommands =
+CommandProcessor = cp.CommandProcessor.prototype;
+
+CommandProcessor.parseCommands =
function(commands, transport) {
;;;kukit.log('Parsing commands.');
;;;kukit.logDebug('Number of commands : ' + commands.length + '.');
@@ -48,7 +50,7 @@
}
};
-cp.CommandProcessor.prototype.parseCommand =
+CommandProcessor.parseCommand =
function(command, transport) {
var selector = "";
var params = {};
@@ -106,11 +108,11 @@
this.addCommand(command);
};
-cp.CommandProcessor.prototype.addCommand = function(command) {
+CommandProcessor.addCommand = function(command) {
this.commands[this.commands.length] = command;
};
-cp.CommandProcessor.prototype.executeCommands = function(oper) {
+CommandProcessor.executeCommands = function(oper) {
kukit.engine.beginSetupEventsCollection();
// node, eventRule, binder are given on oper, in case
// the command was called up from an event
More information about the Kukit-checkins
mailing list