couple of fixes

pull/1839/head
Rich Harris 7 years ago
parent af99b4d099
commit e9b2234e7c

@ -232,7 +232,8 @@ export default function tag(parser: Parser) {
const special = specials.get(name);
parser.eat('>', true);
parser[special.property].push(special.read(parser, start, element.attributes));
const content = special.read(parser, start, element.attributes);
if (content) parser[special.property].push(content);
return;
}

@ -47,6 +47,11 @@ function define($$self, $$props, $$make_dirty) {
}
$$self.$$.get = () => ({ w, h, div_resize_handler });
$$self.$$.set = $$props => {
if ('w' in $$props) w = $$props.w;
if ('h' in $$props) h = $$props.h;
};
}
class SvelteComponent extends SvelteComponent_1 {

@ -58,7 +58,6 @@ function create_fragment(component, ctx) {
}
function define($$self, $$props, $$make_dirty) {
// TODO some of these are read-only...
let { buffered, seekable, played, currentTime, duration, paused, volume } = $$props;
function audio_timeupdate_handler() {

@ -21,7 +21,5 @@
]
},
"css": [],
"js": [
null
]
"js": []
}
Loading…
Cancel
Save