From 2cd6649ba05f10efda089ee026715c1b05e5833f Mon Sep 17 00:00:00 2001 From: Robin Ward <robin.ward@gmail.com> Date: Fri, 11 Mar 2016 16:32:28 -0500 Subject: [PATCH] FIX: Was leaking `tagName` across plugin outlets --- app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6 b/app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6 index f7a85a460..6da20c342 100644 --- a/app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6 +++ b/app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6 @@ -172,7 +172,7 @@ Ember.HTMLBars._registerHelper('plugin-outlet', function(params, hash, options, // just shove it in. 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; } delete options.fn; // we don't need the default template since we have a connector