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

Commit

Permalink
Added an until property when calling Ember.deprecate. This resolv…
Browse files Browse the repository at this point in the history
…es deprecation warnings seen with Ember 2.8.
  • Loading branch information
Wesley Workman committed Aug 30, 2016
1 parent 67a9857 commit 0e6fcfd
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 0e6fcfd

Please # to comment.