Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #396 from workmanw/ember-deprecate-deprecations
Browse files Browse the repository at this point in the history
Added an `until` property when calling `Ember.deprecate`
  • Loading branch information
jamesarosen authored Aug 30, 2016
2 parents 67a9857 + 0e6fcfd commit d602e51
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addon/services/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ export default Parent.extend(Evented, {
// in the current `locale`.
t(key, data = {}) {
Ember.deprecate('locale is a reserved attribute', !data.hasOwnProperty('locale'), {
id: 'ember-i18n.reserve-locale'
id: 'ember-i18n.reserve-locale',
until: '5.0.0'
});

Ember.deprecate('htmlSafe is a reserved attribute', !data.hasOwnProperty('htmlSafe'), {
id: 'ember-i18n.reserve-htmlSafe'
id: 'ember-i18n.reserve-htmlSafe',
until: '5.0.0'
});

const locale = this.get('_locale');
Expand Down

0 comments on commit d602e51

Please sign in to comment.