mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: Backwards compatibility for plugin initializers
This commit is contained in:
parent
1b44924cb0
commit
2482cb8f9f
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ window.Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
|
||||||
var init = module.default;
|
var init = module.default;
|
||||||
var oldInitialize = init.initialize;
|
var oldInitialize = init.initialize;
|
||||||
init.initialize = function(app) {
|
init.initialize = function(app) {
|
||||||
oldInitialize.call(this, app.container, app);
|
oldInitialize.call(this, app.container, Discourse);
|
||||||
};
|
};
|
||||||
|
|
||||||
Discourse.instanceInitializer(init);
|
Discourse.instanceInitializer(init);
|
||||||
|
|
Loading…
Reference in a new issue