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

Render "into" named outlet in application route broken - Uncaught TypeError: Cannot read property 'routeName' of undefined #10428

Closed
andrewobrien opened this issue Feb 12, 2015 · 1 comment

Comments

@andrewobrien
Copy link

Here is the broken version on Ember 1.12.0-beta.1+canary.61ef0d2b, Its also broken on latest beta release.
"Uncaught TypeError: Cannot read property 'routeName' of undefined"
http://emberjs.jsbin.com/taqamo/11/edit

And the code that's causing it:

if (into && into === parentRoute(route).routeName) {
      into = undefined;
}

And a working bin with Ember "1.10.0"
http://emberjs.jsbin.com/taqamo/9/edit

var renderOptions = {
    into: options && options.into ? options.into.replace(/\//g, '.') : parentTemplate(route),
    outlet: (options && options.outlet) || 'main',
    name: name,
    controller: controller
};

In the working example it seems the code in renderOptions "into" returns application where as it gets set to undefined in the problem code, is there a reason for this? Am I missing something here?

@rwjblue
Copy link
Member

rwjblue commented Feb 12, 2015

Duplicate of #10416.

@rwjblue rwjblue closed this as completed Feb 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants