Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
h() {
if (img.src !== (img_src_value = "donuts.jpg")) attr(img, "src", img_src_value);
attr(img, "alt", "donuts");
},
m(target, anchor) {
c() {
a = element("a");
a.textContent = "Test";
attr(a, "href", "#");
dispose = action_destroyer(link_action = link.call(null, a));
},
m(target, anchor) {
c() {
input0 = element("input");
t = space();
input1 = element("input");
attr(input0, "type", "file");
attr(input1, "type", "file");
dispose = [
listen(input0, "change", /*input0_change_handler*/ ctx[1]),
listen(input1, "change", /*input1_change_handler*/ ctx[2])
];
},
m(target, anchor) {
c() {
meta0 = element("meta");
meta1 = element("meta");
attr(meta0, "name", "twitter:creator");
attr(meta0, "content", "@sveltejs");
attr(meta1, "name", "twitter:title");
attr(meta1, "content", "Svelte");
},
m(target, anchor) {
c() {
div = element("div");
attr(div, "class", "svelte-1slhpfn");
},
m(target, anchor) {
p(ctx, [dirty]) {
if (dirty & /*bar*/ 1) {
attr(div1, "data-foo", /*bar*/ ctx[0]);
}
},
i: noop,
h() {
attr(img0, "alt", "potato");
if (img0.src !== (img0_src_value = ctx[0])) attr(img0, "src", img0_src_value);
attr(img1, "alt", "potato");
if (img1.src !== (img1_src_value = "" + (ctx[1] + ".jpg"))) attr(img1, "src", img1_src_value);
},
m(target, anchor) {
c() {
div = element("div");
attr(div, "class", "divider");
},
m(target, anchor) {
c() {
div0 = element("div");
t = space();
div1 = element("div");
attr(div0, "style", ctx[0]);
attr(div1, "style", div1_style_value = "" + (ctx[1] + ": " + ctx[2]));
},
m(target, anchor) {
c() {
input = element("input");
attr(input, "type", "checkbox");
dispose = listen(input, "change", ctx[1]);
},
m(target, anchor) {