Skip to content

Commit

Permalink
bad rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Dec 1, 2020
1 parent 7f48662 commit 27fd9c2
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions packages/model/addon/-private/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -2120,29 +2120,6 @@ if (DEPRECATE_EVENTED_API_USAGE) {
});
}

if (DEPRECATE_MODEL_DATA) {
/**
@property data
@private
@deprecated
@type {Object}
*/
Object.defineProperty(Model.prototype, 'data', {
configurable: false,
get() {
deprecate(
`Model.data was private and it's use has been deprecated. For public access, use the RecordData API or iterate attributes`,
false,
{
id: 'ember-data:Model.data',
until: '3.9',
}
);
return recordDataFor(this)._data;
},
});
}

if (DEPRECATE_MODEL_TOJSON) {
/**
Use [JSONSerializer](JSONSerializer.html) to
Expand Down

0 comments on commit 27fd9c2

Please sign in to comment.