Skip to content

Commit

Permalink
clean up and remove assumption
Browse files Browse the repository at this point in the history
  • Loading branch information
rmurphey committed Feb 23, 2012
1 parent 79ca647 commit 5679df5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/mulberry/app/Router.js
Expand Up @@ -96,7 +96,7 @@ dojo.require('dojo.hash');
*/
home : function() {
mulberry.app.UI.set('navDirection', 'back');
this.go('/home');
this.go(this.defaultRoute.origRoute);
},

/**
Expand All @@ -113,8 +113,6 @@ dojo.require('dojo.hash');

mulberry.logSection('Handling ' + hash);

console.log(this.currentRoute);

var route = this.currentRoute = this._lookupRoute(hash),
params,
proceed = true;
Expand All @@ -123,7 +121,6 @@ dojo.require('dojo.hash');

if (!route) {
console.log('No route found for hash ' + hash);
console.log(this.currentRoute);
this.go(this.defaultRoute.origRoute, true);
return;
}
Expand Down

0 comments on commit 5679df5

Please sign in to comment.