mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 23:54:16 +08:00
FIX: If a deprecated view can't be found, look for a component
This commit is contained in:
parent
8cb4442527
commit
04c6733ae7
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user