Skip to content

Commit

Permalink
Merge pull request #8 from kyleballard/ch08-url-fix
Browse files Browse the repository at this point in the history
Fix reference error.  'getUrl' is undefined without this reference.
  • Loading branch information
azat-co committed Jul 15, 2017
2 parents 63f5b66 + b54ce1b commit 1c3afcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ch08/hi-order/js/load-website.js
Expand Up @@ -11,7 +11,7 @@ const LoadWebsite = Component => {
return 'https://facebook.github.io/react/docs/top-level-api.html';
}
handleClick(event) {
document.getElementById('frame').src = getUrl();
document.getElementById('frame').src = this.getUrl();
}
componentDidMount() {
console.log(ReactDOM.findDOMNode(this));
Expand Down
2 changes: 1 addition & 1 deletion ch08/hi-order/jsx/load-website.jsx
Expand Up @@ -8,7 +8,7 @@ const LoadWebsite = (Component) => {
return 'https://facebook.github.io/react/docs/top-level-api.html'
}
handleClick(event) {
document.getElementById('frame').src = getUrl()
document.getElementById('frame').src = this.getUrl()
}
componentDidMount() {
console.log(ReactDOM.findDOMNode(this))
Expand Down

0 comments on commit 1c3afcb

Please sign in to comment.