aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/router.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-07-29 19:33:41 +0100
committerStruan Donald <struan@exo.org.uk>2013-07-29 19:33:41 +0100
commitd3ccaf350fdac7f2997d7babb349543c555e90b7 (patch)
tree81718364a0ad35238b80892f1a9bd40eff28344d /src/js/router.js
parent2dfbaf0dfb44c630f2508336c78043515c1c30dd (diff)
pass in back button event from handler
This is so that the onClickButtonPrev method we eventually pass to requires an event so without having this we were breaking this and causing the back button to do nothing. Fixes #68.
Diffstat (limited to 'src/js/router.js')
-rw-r--r--src/js/router.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/router.js b/src/js/router.js
index 3f5a9b2..118955e 100644
--- a/src/js/router.js
+++ b/src/js/router.js
@@ -36,9 +36,9 @@
}
},
- back: function() {
+ back: function(e) {
if (this.currentView && this.currentView.prev) {
- this.currentView.onClickButtonPrev();
+ this.currentView.onClickButtonPrev(e);
}
},