mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
FIX: In Ember CLI some plugin tests were referring to the wrong container
This commit is contained in:
parent
520a0cfa2b
commit
769d53ff09
@ -1564,6 +1564,9 @@ function getPluginApi(version) {
|
|||||||
owner.registry.register("plugin-api:main", pluginApi, {
|
owner.registry.register("plugin-api:main", pluginApi, {
|
||||||
instantiate: false,
|
instantiate: false,
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
// If we are re-using an instance, make sure the container is correct
|
||||||
|
pluginApi.container = owner;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We are recycling the compatible object, but let's update to the higher version
|
// We are recycling the compatible object, but let's update to the higher version
|
||||||
|
Loading…
Reference in New Issue
Block a user