-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX beta] Avoid creating enumerable properties on all objects cre…
…ated by DI. Prior to these changes, every object created via `owner.factoryFor(...).create()` was populated with `NAME_KEY`, `_debugContainerKey`, and `OWNER`. After these changes: * For `Ember.Object`'s, only actual injections are included in the create arguments. * For non-`Ember.Object`'s, only `OWNER` is included in the create arguments. `OWNER` is still provided for non-`Ember.Object`'s in order to support various classes that are used in the rendering layer that expect to be passed `options[OWNER]` so they can function properly. Examples are `ember-glimmer/environment` and `ember-glimmer/template`. These should be refactored away from `OWNER` being passed in, and this fallback should be removed. A handful of tests were added / updated. In some cases `_debugContainerKey` assertions were removed, since this is no longer supported configuration (e.g. there is no way to inject `_debugContainerKey` onto the class itself without double extend).
- Loading branch information
Showing
5 changed files
with
143 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters