Skip to content

Commit 532a461

Browse files
committed
Bind navigation methods properly
1 parent a38446b commit 532a461

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/NavigationContext.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ var NavigationContext = {
1515

1616
getChildContext: function () {
1717
return {
18-
makePath: this.constructor.makePath,
19-
makeHref: this.constructor.makeHref,
20-
transitionTo: this.constructor.transitionTo,
21-
replaceWith: this.constructor.replaceWith,
22-
goBack: this.constructor.goBack
18+
makePath: this.constructor.makePath.bind(this.constructor),
19+
makeHref: this.constructor.makeHref.bind(this.constructor),
20+
transitionTo: this.constructor.transitionTo.bind(this.constructor),
21+
replaceWith: this.constructor.replaceWith.bind(this.constructor),
22+
goBack: this.constructor.goBack.bind(this.constructor)
2323
};
2424
}
2525

0 commit comments

Comments
 (0)