FIX: If a deprecated view can't be found, look for a component

This commit is contained in:
Robin Ward 2014-07-23 15:23:34 -04:00
parent 8cb4442527
commit 04c6733ae7
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ export default {
var newName = deprecatedViewHelpers[old];
Ember.Handlebars.registerHelper(old, function(options) {
Em.warn("The `" + old +"` helper is deprecated. Use `" + newName + "` instead.");
var helper = container.lookupFactory('view:' + newName);
var helper = container.lookupFactory('view:' + newName) || container.lookupFactory('component:' + newName);
var hash = options.hash,
types = options.hashTypes;