Skip to content

Commit

Permalink
assign default state values
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahemomari committed May 23, 2023
1 parent 079a94f commit 26e9613
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions scripts/buildfire/components/fabSpeedDial/fabSpeedDial.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,16 @@ buildfire.components.fabSpeedDial = class FabSpeedDial {

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

this._init();
}

/**
* Get state default values
*/
get getDefaultState() {
return {
this._state = {
mainFabBtnElement: null,
isOpen: false,
overlayElement: null,
bodyTextColor: '#000000',
};
this._onMainBtnClick = this._onMainBtnClick.bind(this);
this._onOverlayClick = this._onOverlayClick.bind(this);

this._init();
}

static ACTIVE_CLASS_NAME = 'active';
Expand Down

0 comments on commit 26e9613

Please sign in to comment.