mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 07:53:46 +08:00
8958b4f76a
Our custom implementation of `getOwner` includes a fallback which returns an owner, even if the passed object does not have one set. This is confusing and creates a false sense of security. Generally if the fallback is used, it means there is a problem with the patterns being used. This commit renames our custom implementation to `getOwnerWithFallback`, while maintaining the old `getOwner` export with a deprecation notice. Core code is updated to use the official `@ember/application` implementation, or the new `getOwnerWithFallback` function. This commit updates all core uses of `{ getOwner } from discourse-common/lib/get-owner` to use `getOwnerWithFallback`. Future commits will work through and convert many of these to use the official `@ember/application` implementation |
||
---|---|---|
.. | ||
discourse-logo.hbs | ||
homepage-preview.js | ||
image-preview-logo-small.js | ||
image-preview-logo.js | ||
styling-preview.hbs | ||
styling-preview.js | ||
wizard-canvas.js | ||
wizard-field-checkbox.hbs | ||
wizard-field-checkbox.js | ||
wizard-field-checkboxes.hbs | ||
wizard-field-checkboxes.js | ||
wizard-field-dropdown.hbs | ||
wizard-field-dropdown.js | ||
wizard-field-image.hbs | ||
wizard-field-image.js | ||
wizard-field-text.hbs | ||
wizard-field-text.js | ||
wizard-field.hbs | ||
wizard-field.js | ||
wizard-image-preview.hbs | ||
wizard-image-preview.js | ||
wizard-preview-base.hbs | ||
wizard-preview-base.js | ||
wizard-step-form.js | ||
wizard-step.hbs | ||
wizard-step.js |