Skip to content

Commit

Permalink
fix(GoogleMaps): constructor should use spread operator
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchentw committed May 5, 2015
1 parent 12286c0 commit d8e30af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/GoogleMaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class GoogleMaps extends EventComponent {
/*
* Internals
*/
constructor (props) {
super(props);
constructor (...args) {
super(...args);
this.state = {};
}

Expand Down
4 changes: 2 additions & 2 deletions src/internals/EventComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class EventComponent extends React.Component {
* member:
* _createOrUpdateInstance
*/
constructor (props) {
super(props);
constructor (...args) {
super(...args);

this._unregisterEvents = noop;
}
Expand Down
4 changes: 2 additions & 2 deletions src/internals/SimpleChildComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class SimpleChildComponent extends EventComponent {
* state:
* instance
*/
constructor (props) {
super(props);
constructor (...args) {
super(...args);
this.state = {};
}

Expand Down

0 comments on commit d8e30af

Please sign in to comment.