Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot addChild in afterRender #92

Open
Duder-onomy opened this issue Apr 22, 2014 · 0 comments
Open

Cannot addChild in afterRender #92

Duder-onomy opened this issue Apr 22, 2014 · 0 comments

Comments

@Duder-onomy
Copy link
Contributor

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;
    }
@pajtai pajtai added bug labels Jul 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants