Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

Commit

Permalink
fixed routing between different types of routes where one was async
Browse files Browse the repository at this point in the history
  • Loading branch information
samandmoore committed Feb 23, 2015
1 parent 6016bf7 commit 2ea5bd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backbone.blazer.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
handleRoute: function(routeData) {
var handler = routeData.handler;

this.currentRoute = handler;

if (_.isString(handler)) {
if (_.isFunction(this[handler])) {
this[handler].apply(this, routeData.params);
Expand All @@ -57,8 +59,6 @@
_handleBlazerRoute: function(route, routeData) {
var router = this;

this.currentRoute = route;

route.trigger('before:execute', routeData);

route.prepare(routeData).then(function() {
Expand Down

0 comments on commit 2ea5bd4

Please sign in to comment.