FIX: Was leaking tagName across plugin outlets

This commit is contained in:
Robin Ward 2016-03-11 16:32:28 -05:00
parent 1006b1ba94
commit 2cd6649ba0

View File

@ -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