From 339837d9bd9d6b8d0b20f6c1b97024e756807cc5 Mon Sep 17 00:00:00 2001 From: Marten Schilstra Date: Fri, 17 Jul 2015 11:10:44 +0200 Subject: [PATCH] [CLEANUP beta] Remove Application#then --- packages/ember-application/lib/system/application.js | 11 ----------- .../tests/system/application_test.js | 12 ------------ 2 files changed, 23 deletions(-) diff --git a/packages/ember-application/lib/system/application.js b/packages/ember-application/lib/system/application.js index e77844db3a1..3e7dbde685c 100644 --- a/packages/ember-application/lib/system/application.js +++ b/packages/ember-application/lib/system/application.js @@ -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); } }); diff --git a/packages/ember-application/tests/system/application_test.js b/packages/ember-application/tests/system/application_test.js index c68319ea582..205c78ac075 100644 --- a/packages/ember-application/tests/system/application_test.js +++ b/packages/ember-application/tests/system/application_test.js @@ -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({