Function

setOwner (object, object) public

Module: @ember/application

Available since v2.3.0

import { setOwner } from '@ember/application';
object
Object
An object instance.
object
Object
The new owner object of the object instance.

setOwner forces a new owner on a given object instance. This is primarily useful in some testing cases.

© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/3.25/functions/@ember%2Fapplication/setOwner