Skip to content

Use public API for container/registry when possible. - #3912

Merged
bmac merged 1 commit into
warp-drive-data:masterfrom
rwjblue:use-getowner
Nov 11, 2015
Merged

Use public API for container/registry when possible.#3912
bmac merged 1 commit into
warp-drive-data:masterfrom
rwjblue:use-getowner

Conversation

@rwjblue

@rwjblue rwjblue commented Nov 10, 2015

Copy link
Copy Markdown
Contributor

Ember 2.3 will include Ember.getOwner and Ember.setOwner as public API's to access various registry and container features. As of Ember 2.3, using this.container in any instance looked up from the container will issue a deprecation (instructing the user to use Ember.getOwner(this) instead).

This PR fixes all deprecations against ember#canary channel by adding a simplified polyfill so that the internal code can always operate with the Ember.getOwner API.

@rwjblue

rwjblue commented Nov 10, 2015

Copy link
Copy Markdown
Contributor Author

/cc @dgeb

@rwjblue
rwjblue force-pushed the use-getowner branch 2 times, most recently from c379df1 to 9c0d2f1 Compare November 10, 2015 06:02
Ember 2.3 will include `Ember.getOwner` and `Ember.setOwner` as public
API's to access various registry and container features. As of Ember
2.3, using `this.container` in any instance looked up from the container
will issue a deprecation (instructing the user to use
`Ember.getOwner(this)` instead).

This PR fixes all deprecations against ember#canary channel by adding a
simplified polyfill so that the internal code can always operate with
the `Ember.getOwner` API.
@bmac

bmac commented Nov 11, 2015

Copy link
Copy Markdown
Contributor

Looks good to me. 👍

bmac added a commit that referenced this pull request Nov 11, 2015
Use public API for container/registry when possible.
@bmac
bmac merged commit 2e364ee into warp-drive-data:master Nov 11, 2015
@rwjblue
rwjblue deleted the use-getowner branch May 1, 2019 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants