Skip to content

Commit e17274b

Browse files
committed
Remove unneeded restriction around creating sub-applications
1 parent 132b66a commit e17274b

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

packages/@ember/-internals/views/lib/system/event_dispatcher.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -162,21 +162,6 @@ export default class EventDispatcher extends EmberObject {
162162
`You cannot use the same root element (${specifiedRootElement}) multiple times in an Ember.Application`,
163163
!rootElement.classList.contains(ROOT_ELEMENT_CLASS)
164164
);
165-
assert(
166-
'You cannot make a new Ember.Application using a root element that is a descendent of an existing Ember.Application',
167-
(() => {
168-
let target = rootElement.parentNode;
169-
while (target instanceof Element) {
170-
if (target.classList.contains(ROOT_ELEMENT_CLASS)) {
171-
return false;
172-
}
173-
174-
target = target.parentNode;
175-
}
176-
177-
return true;
178-
})()
179-
);
180165
assert(
181166
'You cannot make a new Ember.Application using a root element that is an ancestor of an existing Ember.Application',
182167
!rootElement.querySelector(ROOT_ELEMENT_SELECTOR)

0 commit comments

Comments
 (0)