Skip to content

Commit

Permalink
Merge pull request #20028 from emberjs/chriskrycho/container-backports
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue authored Mar 24, 2022
2 parents 3537670 + 2590b2b commit d3a1957
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/@ember/-internals/container/lib/container.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Factory, LookupOptions, Owner, setOwner } from '@ember/-internals/owner';
import { dictionary, HAS_NATIVE_PROXY, HAS_NATIVE_SYMBOL, symbol } from '@ember/-internals/utils';
import { dictionary, HAS_NATIVE_PROXY, symbol } from '@ember/-internals/utils';
import { assert } from '@ember/debug';
import { assign } from '@ember/polyfills';
import { DEBUG } from '@glimmer/env';
Expand Down Expand Up @@ -558,11 +558,6 @@ class FactoryManager<T, C> {
this.normalizedName = normalizedName;
this.madeToString = undefined;
this.injections = undefined;
setFactoryFor(this, this);

if (isInstantiatable(container, fullName) && (HAS_NATIVE_SYMBOL || INIT_FACTORY in factory)) {
setFactoryFor(factory, this);
}
}

toString(): string {
Expand Down

0 comments on commit d3a1957

Please sign in to comment.