Skip to content

Commit 5ddb11e

Browse files
committed
Removed code from example
1 parent 5d4c30c commit 5ddb11e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

example/ChartViewer.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ class ChartViewer extends React.Component {
7878
this.onChangeSize = this.onChangeSize.bind(this);
7979
this.onFetchData = this.onFetchData.bind(this);
8080
this.onChangeCaption = this.onChangeCaption.bind(this);
81-
this.onChange = this.onChange.bind(this);
8281
}
8382

8483
componentDidMount() {
@@ -124,11 +123,6 @@ class ChartViewer extends React.Component {
124123
);
125124
}
126125

127-
onChange() {
128-
this.onChangeCaption();
129-
this.onChangeSize();
130-
}
131-
132126
render() {
133127
return (
134128
<div>
@@ -141,7 +135,6 @@ class ChartViewer extends React.Component {
141135
<div>
142136
<button onClick={this.onChangeSize}>Change Size</button>
143137
<button onClick={this.onChangeCaption}>Change Caption</button>
144-
<button onClick={this.onChange}>Change Both</button>
145138
</div>
146139
</div>
147140
);

0 commit comments

Comments
 (0)