1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-13 05:47:17 +00:00

Coding standards tweaks

This commit is contained in:
Jermolene
2018-06-21 09:32:15 +01:00
parent fca56add92
commit 7d06f75305
8 changed files with 157 additions and 122 deletions

View File

@@ -152,7 +152,7 @@ SimpleServer.prototype.listen = function(port,host) {
};
var Command = function(params,commander,callback) {
var _this = this;
var self = this;
this.params = params;
this.commander = commander;
this.callback = callback;
@@ -163,7 +163,7 @@ var Command = function(params,commander,callback) {
// Add route handlers
$tw.modules.forEachModuleOfType("serverroute", function(title,routeDefinition) {
// console.log("Loading server route " + title);
_this.server.addRoute(routeDefinition);
self.server.addRoute(routeDefinition);
});
};