diff --git a/src/compiler/compile/render_dom/wrappers/Element/Binding.ts b/src/compiler/compile/render_dom/wrappers/Element/Binding.ts index 10e8d7cd58..ac5732eae7 100644 --- a/src/compiler/compile/render_dom/wrappers/Element/Binding.ts +++ b/src/compiler/compile/render_dom/wrappers/Element/Binding.ts @@ -157,10 +157,6 @@ export default class BindingWrapper { mount_conditions.push(x`!@_isNaN(${this.snippet})`); break; - case 'muted': - update_dom = b`${parent.var}.${this.node.name} = !!${this.snippet};`; - break; - case 'paused': { // this is necessary to prevent audio restarting by itself diff --git a/test/js/samples/media-bindings/expected.js b/test/js/samples/media-bindings/expected.js index 441fff1e0e..0849a38b51 100644 --- a/test/js/samples/media-bindings/expected.js +++ b/test/js/samples/media-bindings/expected.js @@ -87,7 +87,7 @@ function create_fragment(ctx) { } if (dirty & /*muted*/ 128) { - audio.muted = !!/*muted*/ ctx[7]; + audio.muted = /*muted*/ ctx[7]; } if (dirty & /*playbackRate*/ 256 && !isNaN(/*playbackRate*/ ctx[8])) {