Skip to content

Cannot addChild in afterRender #92

@Duder-onomy

Description

@Duder-onomy

This has to do with the fact that the parent is starting, if you break on the line childView.start() you will notice that the parent or this has no el.
this.el does not exist.

function _addChildInstance (childView) {
        var child;
        if (!_(this.children).contains(childView)) {
            this.children.push(child = childView);
            childView.parent = this;
            if(this.hasStarted && !childView.hasStarted) {
                childView.start();
            }
        }
        return child;
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions