File tree 1 file changed +0
-15
lines changed
packages/@ember/-internals/views/lib/system
1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -162,21 +162,6 @@ export default class EventDispatcher extends EmberObject {
162
162
`You cannot use the same root element (${ specifiedRootElement } ) multiple times in an Ember.Application` ,
163
163
! rootElement . classList . contains ( ROOT_ELEMENT_CLASS )
164
164
) ;
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
- ) ;
180
165
assert (
181
166
'You cannot make a new Ember.Application using a root element that is an ancestor of an existing Ember.Application' ,
182
167
! rootElement . querySelector ( ROOT_ELEMENT_SELECTOR )
You can’t perform that action at this time.
0 commit comments