Skip to content

Commit

Permalink
[CLEANUP beta] Remove Application#then
Browse files Browse the repository at this point in the history
  • Loading branch information
martndemus committed Jul 17, 2015
1 parent 8701af4 commit 339837d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
11 changes: 0 additions & 11 deletions packages/ember-application/lib/system/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,17 +779,6 @@ var Application = Namespace.extend({

initializer(options) {
this.constructor.initializer(options);
},

/**
@method then
@private
@deprecated
*/
then() {
Ember.deprecate('Do not use `.then` on an instance of Ember.Application. Please use the `.ready` hook instead.', false, { url: 'http://emberjs.com/guides/deprecations/#toc_deprecate-code-then-code-on-ember-application' });

this._super(...arguments);
}
});

Expand Down
12 changes: 0 additions & 12 deletions packages/ember-application/tests/system/application_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,18 +323,6 @@ QUnit.test('can specify custom router', function() {
ok(app.__container__.lookup('router:main') instanceof CustomRouter, 'application resolved the correct router');
});

QUnit.test('throws helpful error if `app.then` is used', function() {
run(function() {
app = Application.create({
rootElement: '#qunit-fixture'
});
});

expectDeprecation(function() {
run(app, 'then', function() { return this; });
}, /Do not use `.then` on an instance of Ember.Application. Please use the `.ready` hook instead./);
});

QUnit.test('registers controls onto to container', function() {
run(function() {
app = Application.create({
Expand Down

0 comments on commit 339837d

Please sign in to comment.