Fix stupid or check in scrubber defaults

This commit is contained in:
Samuel Attard 2017-07-27 17:49:05 +10:00
parent 2467d91f27
commit 59e85c0f33

View file

@ -292,7 +292,7 @@ TouchBar.TouchBarScrubber = class TouchBarScrubber extends TouchBarItem {
this._addLiveProperty('overlayStyle', overlayStyle || null) this._addLiveProperty('overlayStyle', overlayStyle || null)
this._addLiveProperty('showArrowButtons', showArrowButtons || false) this._addLiveProperty('showArrowButtons', showArrowButtons || false)
this._addLiveProperty('mode', mode || 'free') this._addLiveProperty('mode', mode || 'free')
this._addLiveProperty('continuous', continuous || true) this._addLiveProperty('continuous', typeof continuous === 'undefined' ? true : continuous)
if (typeof select === 'function' || typeof highlight === 'function') { if (typeof select === 'function' || typeof highlight === 'function') {
if (select == null) select = () => {} if (select == null) select = () => {}