From 5ab175842d84ad5fb4c71cdeabb62dd7fa0b77f1 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Mon, 18 May 2020 21:20:46 -0400 Subject: [PATCH] dont bother coercing muted, it happens automatically --- src/compiler/compile/render_dom/wrappers/Element/Binding.ts | 4 ---- test/js/samples/media-bindings/expected.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) 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])) {