Skip to content

Commit 13d79e9

Browse files
committed
docs: further fixes to custom router example
1 parent 820317c commit 13d79e9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

docs/recipes/custom-router.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ We are going to implement custom router as a mixin:
2626
for (var path in this.routes)
2727
routes.push({path: path, handler: this.routes[path]})
2828
return routes
29-
},
30-
31-
renderRouteHandler: function() {
32-
return this.transferPropsTo(this.renderRouteHandler())
3329
}
3430
}
3531

@@ -58,6 +54,6 @@ We can now define our custom routers like this:
5854
},
5955

6056
render: function() {
61-
return this.renderRouteHandler()
57+
return this.transferPropsTo(this.renderRouteHandler());
6258
}
6359
});

0 commit comments

Comments
 (0)