-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document getOwner and setOwner #12562
Conversation
Framework objects in an Ember application (components, services, routes, etc.) | ||
are created via a factory and dependency injection system. | ||
|
||
`getOwner` fetches the owner object responsible for a instance. This can |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an instance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gracias
export function getOwner(object) { | ||
return object[OWNER]; | ||
} | ||
|
||
/** | ||
`setOwner` forces a new owner on a given object instance. This is primarially |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/primarially/primarily/
Thanks @dgeb, updated. |
Thank you @mixonic for tackling these docs. LGTM 👍 |
Normally I would include a preview here, but I cannot seem to get a preview of the docs locally :-/