0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

move resize handler from _beforecreate to _after.. (fixes #1743)

This commit is contained in:
pk 2018-10-29 12:50:48 +01:00
parent 03c7612c6b
commit d27dbae51c
2 changed files with 2 additions and 2 deletions

View File

@ -529,7 +529,7 @@ export default class ElementWrapper extends Wrapper {
renderer.hasComplexBindings = true;
block.builders.hydrate.addLine(
`#component.root._beforecreate.push(${handler});`
`#component.root._aftercreate.push(${handler});`
);
}
});

View File

@ -12,7 +12,7 @@ function create_main_fragment(component, ctx) {
c() {
div = createElement("div");
div.textContent = "some content";
component.root._beforecreate.push(div_resize_handler);
component.root._aftercreate.push(div_resize_handler);
},
m(target, anchor) {