Add parenthesis around or'd expression

pull/841/head
martinandert 7 years ago committed by Rich Harris
parent 1bdd624b35
commit 37f5a626b3

@ -266,7 +266,7 @@ function getBindingValue(
return `@toNumber(${state.parentNode}.${attribute.name})`;
}
if (isMediaElement && attribute.name === 'buffered' || attribute.name === 'seekable' || attribute.name === 'played') {
if (isMediaElement && (attribute.name === 'buffered' || attribute.name === 'seekable' || attribute.name === 'played')) {
return `@timeRangesToArray(${state.parentNode}.${attribute.name})`
}

Loading…
Cancel
Save