backbone-async-route-filters0.1.1 • Public • Published
Backbone Async Route filters
Backbone Async Route filters allows you to have a pre-condition for the router using
before filters and some
"after" routing calls using
Backbone async filters is port of fantactuka/backbone-route-filter with expressjs style async next callbacks.
The primary problem the async callbacks solve is the ability to stall exectution of the forthcoming item in the chain until a next callback has been issued. This makes it very convenient to add ajax functionality in your filters without fearing that the route function will get executed before the ajax function finishes in the background.
var Router = BackboneRouter;
In order to use the AMD file