locomotive
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -209,3 +209,3 @@ /** | ||
, '// Add phases to configure environments, run initializers, draw routes, and' | ||
, '// start an HTTP server. Additional phases can be inserted as neeeded, which' | ||
, '// start an HTTP server. Additional phases can be inserted as needed, which' | ||
, '// is particularly useful if your application handles upgrades from HTTP to' | ||
@@ -212,0 +212,0 @@ , '// other protocols such as WebSocket.' |
@@ -420,3 +420,2 @@ /** | ||
} | ||
return this; | ||
@@ -453,3 +452,2 @@ }; | ||
} | ||
return this; | ||
@@ -574,3 +572,9 @@ }; | ||
try { | ||
self[action](data); | ||
// TODO: Implement promise support for before and after filters. | ||
var promise = self[action](data); | ||
if (promise && typeof promise.then == 'function') { | ||
promise.then(null, function(err) { | ||
self.error(err); | ||
}); | ||
} | ||
return; | ||
@@ -577,0 +581,0 @@ } catch (ex) { |
{ | ||
"name": "locomotive", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Powerful MVC web framework for Node.js.", | ||
@@ -53,3 +53,4 @@ "keywords": [ | ||
"chai-connect-middleware": "0.3.x", | ||
"chai-locomotive-helpers": "0.1.x" | ||
"chai-locomotive-helpers": "0.1.x", | ||
"promise": "4.x.x" | ||
}, | ||
@@ -56,0 +57,0 @@ "engines": { |
@@ -7,2 +7,3 @@ # Locomotive | ||
[![Dependencies](https://david-dm.org/jaredhanson/locomotive.png)](https://david-dm.org/jaredhanson/locomotive) | ||
[![Tips](http://img.shields.io/gittip/jaredhanson.png)](https://www.gittip.com/jaredhanson/) | ||
@@ -9,0 +10,0 @@ |
93488
2818
93
5