Skip to content

Commit

Permalink
Merge pull request #42 from azerothl/master
Browse files Browse the repository at this point in the history
Set method to return the current route
  • Loading branch information
lisathesecond authored Feb 13, 2018
2 parents 6999f42 + c6745b3 commit af2a36d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ const highway = {

return true
},

// return the current route
currentRoute () {
return Backbone.history.getFragment()
},

// Reload current route by restarting `Backbone.history`.
reload: BackboneRouter.restart,
Expand Down

0 comments on commit af2a36d

Please sign in to comment.