Skip to content

Commit

Permalink
Add parenthesis around or'd expression
Browse files Browse the repository at this point in the history
  • Loading branch information
martinandert authored and Rich-Harris committed Sep 12, 2017
1 parent 1bdd624 commit 37f5a62
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 37f5a62

Please sign in to comment.