From 04c6733ae771f2b270890fa792124adfde7e2290 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 23 Jul 2014 15:23:34 -0400 Subject: [PATCH] FIX: If a deprecated view can't be found, look for a component --- .../javascripts/discourse/initializers/deprecations.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/initializers/deprecations.js.es6 b/app/assets/javascripts/discourse/initializers/deprecations.js.es6 index edb80811436..4227e2f62ce 100644 --- a/app/assets/javascripts/discourse/initializers/deprecations.js.es6 +++ b/app/assets/javascripts/discourse/initializers/deprecations.js.es6 @@ -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;