From: Samuel Attard Date: Mon, 13 Mar 2017 00:00:10 +0000 (+1100) Subject: Fix linting X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a85ae27d68688837734a65d0d470c420d8044d32;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Fix linting --- diff --git a/atom/browser/ui/cocoa/atom_scrubber_data_source.h b/atom/browser/ui/cocoa/atom_scrubber_data_source.h index c2d6299..5ffcd50 100644 --- a/atom/browser/ui/cocoa/atom_scrubber_data_source.h +++ b/atom/browser/ui/cocoa/atom_scrubber_data_source.h @@ -13,7 +13,7 @@ #include "native_mate/persistent_dictionary.h" @interface AtomScrubberDataSource : NSObject { - @protected + @protected std::vector items_; } diff --git a/lib/browser/api/touch-bar.js b/lib/browser/api/touch-bar.js index 60a82f2..7f997ed 100644 --- a/lib/browser/api/touch-bar.js +++ b/lib/browser/api/touch-bar.js @@ -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) } } }