Skip to content

Commit

Permalink
[PERF] let GUID_KEYS just be set on the model instances (#4858)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7715a63)
  • Loading branch information
stefanpenner authored and bmac committed Apr 28, 2017
1 parent 221c85e commit 00ad4d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addon/-private/system/model/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ const retrieveFromCurrentState = computed('currentState', function(key) {
const Model = Ember.Object.extend(Ember.Evented, {
_internalModel: null,
store: null,
__defineNonEnumerable(property) {
this[property.name] = property.descriptor.value;
},

/**
If this property is `true` the record is in the `empty`
Expand Down

0 comments on commit 00ad4d7

Please sign in to comment.