You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/js/samples/inline-style-optimized/expected.js

60 lines
926 B

/* generated by Svelte vX.Y.Z */
6 years ago
import {
SvelteComponent,
6 years ago
detach,
element,
init,
insert,
noop,
safe_not_equal,
set_style
} from "svelte/internal";
function create_fragment(ctx) {
var div;
return {
7 years ago
c() {
6 years ago
div = element("div");
set_style(div, "color", ctx.color);
},
7 years ago
m(target, anchor) {
insert(target, div, anchor);
},
7 years ago
p(changed, ctx) {
if (changed.color) {
6 years ago
set_style(div, "color", ctx.color);
}
},
i: noop,
o: noop,
6 years ago
d(detaching) {
if (detaching) {
detach(div);
7 years ago
}
}
};
}
function instance($$self, $$props, $$invalidate) {
let { color } = $$props;
6 years ago
$$self.$set = $$props => {
if ('color' in $$props) $$invalidate('color', color = $$props.color);
};
return { color };
}
class Component extends SvelteComponent {
constructor(options) {
super();
6 years ago
init(this, options, instance, create_fragment, safe_not_equal, ["color"]);
}
}
export default Component;