locomotive
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -113,3 +113,10 @@ /** | ||
Object.keys(this).filter(localProperties).forEach(function(key) { | ||
self.__res.locals[key] = self[key]; | ||
var value = self[key]; | ||
// TODO: Implement a test case for this. | ||
// Make sure functions are always run in the current controllers` context. | ||
if (value instanceof Function) | ||
value = value.bind(self); | ||
self.__res.locals[key] = value; | ||
}); | ||
@@ -116,0 +123,0 @@ |
{ | ||
"name": "locomotive", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "Powerful MVC web framework for Node.js.", | ||
@@ -5,0 +5,0 @@ "author": { "name": "Jared Hanson", "email": "jaredhanson@gmail.com", "url": "http://www.jaredhanson.net/" }, |
98603
3034