Final set of backwards compatible fixes for Ember 1.13

This commit is contained in:
Robin Ward
2016-10-28 15:51:39 -04:00
parent 8c9d390cac
commit a319cfe77a
26 changed files with 103 additions and 175 deletions
@@ -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;
}
+1 -1
View File
@@ -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);
}
});
}