From 7ed547f7eb0b6a2ed2c94bec3f4beb074a72941f Mon Sep 17 00:00:00 2001 From: Jared Hanson Date: Fri, 13 Dec 2013 07:44:43 -0800 Subject: [PATCH] Clarify to do items. --- lib/cli/server.js | 2 +- lib/controller.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/cli/server.js b/lib/cli/server.js index 6b523b4..39f5862 100644 --- a/lib/cli/server.js +++ b/lib/cli/server.js @@ -24,7 +24,7 @@ exports = module.exports = function server(dir, address, port, env, options) { var command, args, proc; - // TODO: Check if dir exists. + // TODO: Check if directory exists. //if (!existsSync(dir)) { return callback(new Error('Application does not exist: ' + dir)); } // If debug mode is enabled, Locomotive will respawn using a node process with diff --git a/lib/controller.js b/lib/controller.js index 2e9fa0b..b11b667 100644 --- a/lib/controller.js +++ b/lib/controller.js @@ -117,8 +117,8 @@ Controller.prototype.render = function(template, options, fn) { Object.keys(this).filter(localProperties).forEach(function(key) { var value = self[key]; - // TODO: Implement a test case for this. // Make sure functions are always run in the current controllers` context. + // TODO: Implement test case for this. if (value instanceof Function) { value = value.bind(self); } @@ -535,6 +535,7 @@ Controller.prototype._invoke = function(action) { // Merge helpers into this controller. The controller will have access to the // helpers through the `this` context, and the view will have access via // locals. + // TODO: Implement test case for this. var helpers = this.__app._helpers , dynamicHelpers = this.__app._dynamicHelpers , key;