Skip to content

Commit d0a017a

Browse files
authored
Merge pull request #841 from sveltejs/parenthesize-conditions
Add parenthesis around or'd expression
2 parents 1bdd624 + 37f5a62 commit d0a017a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/generators/dom/visitors/Element/Binding.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ function getBindingValue(
266266
return `@toNumber(${state.parentNode}.${attribute.name})`;
267267
}
268268

269-
if (isMediaElement && attribute.name === 'buffered' || attribute.name === 'seekable' || attribute.name === 'played') {
269+
if (isMediaElement && (attribute.name === 'buffered' || attribute.name === 'seekable' || attribute.name === 'played')) {
270270
return `@timeRangesToArray(${state.parentNode}.${attribute.name})`
271271
}
272272

0 commit comments

Comments
 (0)