Skip to content

Commit

Permalink
change the getState to getDefaultState
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahemomari committed May 23, 2023
1 parent 33d5104 commit 079a94f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/buildfire/components/fabSpeedDial/fabSpeedDial.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ buildfire.components.fabSpeedDial = class FabSpeedDial {

this._onButtonClickCallbacks = [];
// initialize the state
this._state = this.getDefaultState();
this._state = this.getDefaultState;
this._onMainBtnClick = this._onMainBtnClick.bind(this);
this._onOverlayClick = this._onOverlayClick.bind(this);

Expand All @@ -38,7 +38,7 @@ buildfire.components.fabSpeedDial = class FabSpeedDial {
/**
* Get state default values
*/
getDefaultState() {
get getDefaultState() {
return {
mainFabBtnElement: null,
isOpen: false,
Expand Down

0 comments on commit 079a94f

Please sign in to comment.