FIX: Backwards compatibility for plugin initializers

This commit is contained in:
Robin Ward 2015-08-18 11:10:50 -04:00
parent 1b44924cb0
commit 2482cb8f9f

View File

@ -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);