mirror of
https://github.com/discourse/discourse.git
synced 2025-04-01 00:36:01 +08:00
FIX: Was leaking tagName
across plugin outlets
This commit is contained in:
parent
1006b1ba94
commit
2cd6649ba0
@ -172,7 +172,7 @@ Ember.HTMLBars._registerHelper('plugin-outlet', function(params, hash, options,
|
|||||||
// just shove it in.
|
// just shove it in.
|
||||||
const viewClass = (childViews.length > 1) ? Ember.ContainerView : childViews[0];
|
const viewClass = (childViews.length > 1) ? Ember.ContainerView : childViews[0];
|
||||||
|
|
||||||
const newHash = viewInjections(env.data.view.container);
|
const newHash = $.extend({}, viewInjections(env.data.view.container));
|
||||||
if (hash.tagName) { newHash.tagName = hash.tagName; }
|
if (hash.tagName) { newHash.tagName = hash.tagName; }
|
||||||
|
|
||||||
delete options.fn; // we don't need the default template since we have a connector
|
delete options.fn; // we don't need the default template since we have a connector
|
||||||
|
Loading…
x
Reference in New Issue
Block a user