mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
Final set of backwards compatible fixes for Ember 1.13
This commit is contained in:
@@ -4,7 +4,7 @@ export function componentTest(name, opts) {
|
||||
opts = opts || {};
|
||||
|
||||
test(name, function(assert) {
|
||||
initializer.initialize();
|
||||
initializer.initialize(this.container, this.registry);
|
||||
|
||||
if (opts.setup) {
|
||||
opts.setup.call(this);
|
||||
|
||||
@@ -8,7 +8,7 @@ export default function() {
|
||||
Ember.run(() => app = Wizard.create({ rootElement: '#ember-testing' }));
|
||||
|
||||
if (!started) {
|
||||
initializer.initialize();
|
||||
initializer.initialize(app.__container__, app.registry);
|
||||
app.start();
|
||||
started = true;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ export default Ember.Application.extend({
|
||||
if (/\/initializers\//.test(key)) {
|
||||
const module = require(key, null, null, true);
|
||||
if (!module) { throw new Error(key + ' must export an initializer.'); }
|
||||
this.instanceInitializer(module.default);
|
||||
this.initializer(module.default);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user