From fa3c45bb4c3bd6d5b106de009dcde24db35cc899 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 26 Oct 2016 11:19:29 -0400 Subject: [PATCH] FIX: Mobile raw templates weren't being resolved --- app/assets/javascripts/discourse-common/resolver.js.es6 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/assets/javascripts/discourse-common/resolver.js.es6 b/app/assets/javascripts/discourse-common/resolver.js.es6 index 90e4b23ad52..15c099cc28c 100644 --- a/app/assets/javascripts/discourse-common/resolver.js.es6 +++ b/app/assets/javascripts/discourse-common/resolver.js.es6 @@ -132,12 +132,6 @@ export function buildResolver(baseName) { }, resolveTemplate(parsedName) { - let fullName = parsedName.fullNameWithoutType; - if (fullName.indexOf('.raw') !== -1) { - return Ember.TEMPLATES[fullName] || - Ember.TEMPLATES[fullName.replace(/\.raw$/, '')]; - } - return this.findPluginMobileTemplate(parsedName) || this.findPluginTemplate(parsedName) || this.findMobileTemplate(parsedName) || @@ -187,6 +181,7 @@ export function buildResolver(baseName) { return this._super(parsedName) || templates[slashedType] || templates[withoutType] || + templates[withoutType.replace(/\.raw$/, '')] || templates[dashed] || templates[decamelized.replace(/\./, '/')] || templates[decamelized.replace(/\_/, '/')] ||