« All deprecation guides
Deprecation Guide for Clobbering Addon#options
until:
id: clobbering-addon-options
Clobbering this.options
within an addon has been deprecated. If you would like to use this.options
for internal options within your addon, you must preserve the intitial options object that is present.
Instead of doing this:
included() {
this.options = { my-addons: { special: { options: 'here' } } };
}
You should do the following:
included() {
this.options = this.options || {};
this.options['my-addons'] = { special: { options: 'here' } };
}