dont bother coercing muted, it happens automatically

pull/4690/head
Richard Harris 5 years ago
parent 15279ba0a3
commit 5ab175842d

@ -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

@ -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])) {

Loading…
Cancel
Save