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

Commit bcc4e8e

Browse files
committed
Add arguments in overwritten functions
1 parent c4bf3c0 commit bcc4e8e

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-
return originalHistoryBack();
57+
return originalHistoryBack(arguments);
5858
}
5959

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

6666
this.historySize = -1;

0 commit comments

Comments
 (0)