|
|
@ -172,24 +172,20 @@ function create_main_fragment(component, ctx) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
c: function create() {
|
|
|
|
c() {
|
|
|
|
div = createElement("div");
|
|
|
|
div = createElement("div");
|
|
|
|
div.textContent = "some content";
|
|
|
|
div.textContent = "some content";
|
|
|
|
this.h();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
h: function hydrate() {
|
|
|
|
|
|
|
|
component.root._beforecreate.push(div_resize_handler);
|
|
|
|
component.root._beforecreate.push(div_resize_handler);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
m: function mount(target, anchor) {
|
|
|
|
m(target, anchor) {
|
|
|
|
insertNode(div, target, anchor);
|
|
|
|
insertNode(div, target, anchor);
|
|
|
|
div_resize_listener = addResizeListener(div, div_resize_handler);
|
|
|
|
div_resize_listener = addResizeListener(div, div_resize_handler);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
p: noop,
|
|
|
|
p: noop,
|
|
|
|
|
|
|
|
|
|
|
|
u: function unmount() {
|
|
|
|
u() {
|
|
|
|
detachNode(div);
|
|
|
|
detachNode(div);
|
|
|
|
div_resize_listener.cancel();
|
|
|
|
div_resize_listener.cancel();
|
|
|
|
},
|
|
|
|
},
|
|
|
|