diff --git a/packages/@ember/-internals/views/lib/system/event_dispatcher.ts b/packages/@ember/-internals/views/lib/system/event_dispatcher.ts index db3512393fc..30082d5c385 100644 --- a/packages/@ember/-internals/views/lib/system/event_dispatcher.ts +++ b/packages/@ember/-internals/views/lib/system/event_dispatcher.ts @@ -162,21 +162,6 @@ export default class EventDispatcher extends EmberObject { `You cannot use the same root element (${specifiedRootElement}) multiple times in an Ember.Application`, !rootElement.classList.contains(ROOT_ELEMENT_CLASS) ); - assert( - 'You cannot make a new Ember.Application using a root element that is a descendent of an existing Ember.Application', - (() => { - let target = rootElement.parentNode; - while (target instanceof Element) { - if (target.classList.contains(ROOT_ELEMENT_CLASS)) { - return false; - } - - target = target.parentNode; - } - - return true; - })() - ); assert( 'You cannot make a new Ember.Application using a root element that is an ancestor of an existing Ember.Application', !rootElement.querySelector(ROOT_ELEMENT_SELECTOR) diff --git a/packages/@ember/application/tests/application_test.js b/packages/@ember/application/tests/application_test.js index 71fdd5c2fa7..e6336b685fc 100644 --- a/packages/@ember/application/tests/application_test.js +++ b/packages/@ember/application/tests/application_test.js @@ -74,16 +74,6 @@ moduleFor( }); } - [`@test you cannot make a new application that is a descendant of an existing application`]() { - expectAssertion(() => { - runTask(() => - this.createSecondApplication({ - rootElement: '#one-child', - }) - ); - }); - } - [`@test you cannot make a new application that is a duplicate of an existing application`]() { expectAssertion(() => { runTask(() =>