Skip to content

Commit

Permalink
Merge pull request #15922 from thoov/legacy-controller-proxy
Browse files Browse the repository at this point in the history
[CLEANUP] Remove legacy controller proxy behavior
  • Loading branch information
rwjblue authored Dec 7, 2017
2 parents 360d1a7 + 82c0684 commit 467ba80
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions packages/ember-runtime/lib/mixins/-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@ export default Mixin.create({
unknownProperty(key) {
let content = get(this, 'content');
if (content) {
deprecate(
`You attempted to access \`${key}\` from \`${this}\`, but object proxying is deprecated. Please use \`model.${key}\` instead.`,
!this.isController,
{ id: 'ember-runtime.controller-proxy', until: '3.0.0' }
);
return get(content, key);
}
},
Expand All @@ -127,12 +122,6 @@ export default Mixin.create({
let content = get(this, 'content');
assert(`Cannot delegate set('${key}', ${value}) to the \'content\' property of object proxy ${this}: its 'content' is undefined.`, content);

deprecate(
`You attempted to set \`${key}\` from \`${this}\`, but object proxying is deprecated. Please use \`model.${key}\` instead.`,
!this.isController,
{ id: 'ember-runtime.controller-proxy', until: '3.0.0' }
);

return set(content, key, value);
}
});

0 comments on commit 467ba80

Please sign in to comment.