diff --git a/src/component/component.ts b/src/component/component.ts index 4f4fedcb..c93c764d 100644 --- a/src/component/component.ts +++ b/src/component/component.ts @@ -351,24 +351,6 @@ export class Component { } } - __createFiber(force, scope, vars, parent?: Fiber): Fiber { - const fiber: Fiber = { - force, - scope, - vars, - rootFiber: null, - isCancelled: false, - component: this, - vnode: null, - patchQueue: parent ? parent.patchQueue : [], - props: this.props, - promise: null - }; - fiber.rootFiber = parent ? parent.rootFiber : fiber; - this.__owl__.currentFiber = fiber; - return fiber; - } - /** * Destroy the component. This operation is quite complex: * - it recursively destroy all children @@ -439,6 +421,27 @@ export class Component { // Private //-------------------------------------------------------------------------- + /** + * This method is a helper to create a fiber element. + */ + __createFiber(force, scope, vars, parent?: Fiber): Fiber { + const fiber: Fiber = { + force, + scope, + vars, + rootFiber: null, + isCancelled: false, + component: this, + vnode: null, + patchQueue: parent ? parent.patchQueue : [], + props: this.props, + promise: null + }; + fiber.rootFiber = parent ? parent.rootFiber : fiber; + this.__owl__.currentFiber = fiber; + return fiber; + } + /** * Private helper to perform a full destroy, from the point of view of an Owl * component. It does not remove the el (this is done only once on the top