Skip to content

Commit 0fed741

Browse files
authored
Merge pull request #16433 from emberjs/rwjblue-remove-content-alias
Remove content alias
2 parents c6616bf + 8089eb5 commit 0fed741

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

packages/ember-runtime/lib/mixins/controller.js

-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Mixin } from 'ember-metal';
2-
import { deprecatingAlias } from '../computed/computed_macros';
32
import ActionHandler from './action_handler';
43

54
/**
@@ -40,13 +39,4 @@ export default Mixin.create(ActionHandler, {
4039
@public
4140
*/
4241
model: null,
43-
44-
/**
45-
@private
46-
*/
47-
content: deprecatingAlias('model', {
48-
id: 'ember-runtime.controller.content-alias',
49-
until: '2.17.0',
50-
url: 'https://emberjs.com/deprecations/v2.x/#toc_controller-content-alias'
51-
})
5242
});

packages/ember-runtime/tests/controllers/controller_test.js

-11
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,6 @@ QUnit.module('Controller deprecations');
106106

107107
QUnit.module('Controller Content -> Model Alias');
108108

109-
QUnit.test('`content` is a deprecated alias of `model`', function(assert) {
110-
assert.expect(2);
111-
let controller = Controller.extend({
112-
model: 'foo-bar'
113-
}).create();
114-
115-
expectDeprecation(function () {
116-
assert.equal(controller.get('content'), 'foo-bar', 'content is an alias of model');
117-
});
118-
});
119-
120109
QUnit.test('`content` is not moved to `model` when `model` is unset', function(assert) {
121110
assert.expect(2);
122111
let controller;

0 commit comments

Comments
 (0)