Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit 82abc7d

Browse files
author
hedgerwang
committed
Fix function binding
1 parent a74367c commit 82abc7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/SiteBoilerPlate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ ReactStyle.addRules(SiteBoilerPlateStyleRules);
6666

6767
var SiteHead = React.createClass({
6868
componentDidMount: function() {
69-
ReactStyle.addEventListener('change', this.forceUpdate);
69+
ReactStyle.addEventListener('change', this.forceUpdate.bind(this));
7070
},
7171

7272
render: function() {

0 commit comments

Comments
 (0)