Skip to content

Commit

Permalink
Bind ExRouteAdapter instance to render callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
axelander committed Feb 24, 2016
1 parent 752dde2 commit 813bbca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ExRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ export class ExRouteAdapter {
this.props = props || {};
this.renderScene = this.renderScene.bind(this);
if (this.route.props.renderRightButton){
this.renderRightButton = this.route.props.renderRightButton.bind(this.route);
this.renderRightButton = this.route.props.renderRightButton.bind(this);
}
if (this.route.props.renderTitle){
this.renderTitle = this.route.props.renderTitle.bind(this.route);
this.renderTitle = this.route.props.renderTitle.bind(null, this.route);
}
if (this.route.props.renderLeftButton){
this.renderLeftButton = this.route.props.renderLeftButton.bind(this.route);
this.renderLeftButton = this.route.props.renderLeftButton.bind(this);
}
}

Expand Down

0 comments on commit 813bbca

Please sign in to comment.