Fix linting

This commit is contained in:
Samuel Attard 2017-03-13 11:00:10 +11:00
parent 25a231fc50
commit a85ae27d68
No known key found for this signature in database
GPG key ID: E89DDE5742D58C4E
2 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@
#include "native_mate/persistent_dictionary.h"
@interface AtomScrubberDataSource : NSObject<NSScrubberDataSource> {
@protected
@protected
std::vector<mate::PersistentDictionary> items_;
}

View file

@ -232,7 +232,7 @@ TouchBar.TouchBarSegmentedControl = class TouchBarSegmentedControl extends Touch
}
TouchBar.TouchBarScrubber = class TouchBarScrubber extends TouchBarItem {
constructor(config) {
constructor (config) {
super()
if (config == null) config = {}
const {items, onSelect, onHighlight} = config
@ -242,9 +242,9 @@ TouchBar.TouchBarScrubber = class TouchBarScrubber extends TouchBarItem {
if (typeof onSelect === 'function' || typeof onHighlight === 'function') {
this.onInteraction = (details) => {
if (details.type === 'select') {
onSelect(details.selectedIndex);
onSelect(details.selectedIndex)
} else if (details.type === 'highlight') {
onHighlight(details.highlightedIndex);
onHighlight(details.highlightedIndex)
}
}
}