Skip to content

Commit

Permalink
Clarify to do items.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Dec 13, 2013
1 parent a960a97 commit 7ed547f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cli/server.js
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion lib/controller.js
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7ed547f

Please sign in to comment.