Skip to content

Commit 18cc0e4

Browse files
authored
Update README.md
1 parent ca13061 commit 18cc0e4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,12 @@ Here's an example on how to configure crumble so that you can override standard
131131

132132
~~~js
133133
// Put this in your run method
134-
var getParent = crumble.getParent;
134+
var getDefaultParent = crumble.getParent;
135135
crumble.getParent = function (path) {
136136
var route = crumble.getRoute(path);
137-
return route && angular.isDefined(route.parent) ? route.parent : getParent(path);
137+
return route && angular.isDefined(route.parent)
138+
? route.parent
139+
: getDefaultParent(path);
138140
};
139141
~~~
140142

0 commit comments

Comments
 (0)