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/title/expected.js

51 lines
1005 B

/* generated by Svelte vX.Y.Z */
import { SvelteComponent as SvelteComponent_1, flush, init, noop, run, safe_not_equal } from "svelte/internal.js";
function create_fragment(component, ctx) {
var title_value, current;
document.title = title_value = "a " + ctx.custom + " title";
return {
c: noop,
m: noop,
7 years ago
p(changed, ctx) {
if ((changed.custom) && title_value !== (title_value = "a " + ctx.custom + " title")) {
document.title = title_value;
}
},
i: noop,
o: run,
d: noop
};
}
function define($$self, $$props) {
let { custom } = $$props;
$$self.$$.get = () => ({ custom });
$$self.$$.set = $$props => {
if ('custom' in $$props) custom = $$props.custom;
};
}
class SvelteComponent extends SvelteComponent_1 {
constructor(options) {
super();
init(this, options, define, create_fragment, safe_not_equal);
}
get custom() {
return this.$$.get().custom;
}
set custom(value) {
this.$set({ custom: value });
flush();
}
}
export default SvelteComponent;