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
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins

Reply via email to