Skip to content

Commit f30e12b

Browse files
committed
Make getParentRouter() method optional when implementing new routers
1 parent 781ef1e commit f30e12b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/environment/Environment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Environment.prototype.register = function register(router) {
7171
this.start();
7272
}
7373

74-
if (!router.getParentRouter()) {
74+
if (router.getParentRouter === undefined || !router.getParentRouter()) {
7575
this.routers.push(router);
7676
}
7777
}

0 commit comments

Comments
 (0)