mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 08:32:26 +08:00
FIX: Backwards compatibility for plugin initializers
This commit is contained in:
parent
1b44924cb0
commit
2482cb8f9f
|
@ -125,7 +125,7 @@ window.Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
|
|||
var init = module.default;
|
||||
var oldInitialize = init.initialize;
|
||||
init.initialize = function(app) {
|
||||
oldInitialize.call(this, app.container, app);
|
||||
oldInitialize.call(this, app.container, Discourse);
|
||||
};
|
||||
|
||||
Discourse.instanceInitializer(init);
|
||||
|
|
Loading…
Reference in New Issue
Block a user