Skip to content

Commit 53234d2

Browse files
kfuledead-claudia
authored andcommitted
[refactor] router: remove onbeforeupdate from RouterRoot
Since the `state` update process has been removed, `onbeforeupdate` is no longer needed. This further reduces the bundle size.
1 parent 8d9c099 commit 53234d2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

api/router.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ module.exports = function($window, mountRedraw) {
3333
var currentResolver, component, attrs, currentPath, lastUpdate
3434

3535
var RouterRoot = {
36-
onbeforeupdate: function() {
37-
return hasBeenResolved
38-
},
3936
onremove: function() {
4037
$window.removeEventListener("popstate", fireAsync, false)
4138
},

0 commit comments

Comments
 (0)