emberjs/ember.js — pull request #4930 by tricknotes (2014-05-25 19:33:05+00:00)
Title: [BUGFIX beta] item/empty view should be lookuped from only global path

When `itemViewClass` is given the same name as global property name,
`CollectionView` couldn't look up registered view from container.

For example:

```handlebars

{{view App.NamesView}}
```

```javascript
App.NameView = Ember.View.extend({
template: Ember.Handlebars.compile('hi, {{view.content}}')
});

App.NamesView = Ember.CollectionView.extend({
itemViewClass: "name",
content: ['tomster']
});
```

Then I expect:
```html
hi, tomster
```

But actual, the assertion error (that is referenced global property `window.name`) is thrown.

----

jsbin here: http://emberjs.jsbin.com/madefoma/4/edit