Skip to content

Cannot addChild in afterRender #92

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;
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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