Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit c4bf3c0

Browse files
committed
Add returns in overwritten functions
1 parent dc904b7 commit c4bf3c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/router.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ module.exports = Backbone.Router.extend({
5454
var originalHistoryBack = history.back;
5555
history.back = function() {
5656
self.historyAction = 'back';
57-
originalHistoryBack();
57+
return originalHistoryBack();
5858
}
5959

6060
var originalHistoryForward = history.forward;
6161
history.forward = function() {
6262
self.historyAction = 'forward';
63-
originalHistoryForward();
63+
return originalHistoryForward();
6464
}
6565

6666
this.historySize = -1;

0 commit comments

Comments
 (0)