Skip to content

Commit

Permalink
Merge pull request #841 from sveltejs/parenthesize-conditions
Browse files Browse the repository at this point in the history
Add parenthesis around or'd expression
  • Loading branch information
Rich-Harris authored Sep 12, 2017
2 parents 1bdd624 + 37f5a62 commit d0a017a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/dom/visitors/Element/Binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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})`
}

Expand Down

0 comments on commit d0a017a

Please sign in to comment.