emberjs/ember.js — Issue #524: View Creation Order can cause issues if you don't use App.set()
Author: skilesare
Created: 2012-02-22 22:10:15+00:00
State: open

App.set('myView', Ember.View.create({}));

is a clunky way to write code. It would be better to do:

App.myView = Ember.View.create{()};

This can cause issues depending on the order you create your views. See this article:

http://ud3323.github.com/2012/02/15/ember-controllers-and-the-runloop.html

@wagenet suggested I open an issue to discuss.

If the top way is the right way then most Ember.js documentation takes a user down a path to ruin because it uses the second notation. It works fine for simple apps but as soon people start building larger apps they could run into a problem.