I have inherited a half-finished mobile app built using Backbone.js (which I have never used).
I need, quite simply, to send the user back when they click a back button.
Nowadays you can also use some more Backbone with Backbone.history.history
which provides you methods like .forward
, .go
and finally Backbone.history.history.back()
.
Unless the app uses the fancy-schmancy HTML5 pushState events, I don't see a need for Backbone.History here. Just use window.history.back().