Fix linting

This commit is contained in:
Samuel Attard 2017-03-10 17:56:26 +11:00
parent e6a66b6006
commit bfe63d7a88
No known key found for this signature in database
GPG key ID: E89DDE5742D58C4E

View file

@ -218,14 +218,14 @@ TouchBar.TouchBarSegmentedControl = class TouchBarSegmentedControl extends Touch
if (config == null) config = {}
const {segmentStyle, segments, selectedIndex, change} = config
this.type = 'segmented_control'
this._addLiveProperty('segmentStyle', segmentStyle);
this._addLiveProperty('segments', segments || []);
this._addLiveProperty('segmentStyle', segmentStyle)
this._addLiveProperty('segments', segments || [])
this._addLiveProperty('selectedIndex', selectedIndex)
if (typeof change === 'function') {
this.onInteraction = (details) => {
this._selectedIndex = details.selectedIndex;
change(details.selectedIndex);
this._selectedIndex = details.selectedIndex
change(details.selectedIndex)
}
}
}