Commits

firefly committed bc31e4c

Even moar

Comments (0)

Files changed (1)

 		this.internalJavaTrigger.setPrefixes(this.prefixes);
 	};
 	CommandTrigger.prototype.call = function(prefix, text) {	// TODO: Clean this up.
+		println("### trigger.call: " + this);
 		println("### CommandTrigger.prototype.call: '" + prefix + "', '" + text + "'.");
 		
 		var input = text.substr(prefix.length);
 	}
 	
 	EldisJava.registerTrigger(trigger.internalJavaTrigger, function() {
-	//	println("Eldis.registerTrigger trigger function execution; calling: trigger.call.apply(" + trigger + ", " + Array.prototype.slice.call(arguments, 0) + ")");
+		//	println("Eldis.registerTrigger trigger function execution; calling: trigger.call.apply(" + trigger + ", " + Array.prototype.slice.call(arguments, 0) + ")");
+		println("### registerTrigger -> callback: Kör trigger.call: " + trigger.call);
 		trigger.call.apply(trigger, arguments);
+		trigger.call(arguments);
 	});
 };