Skip to content

Commit

Permalink
todo
Browse files Browse the repository at this point in the history
  • Loading branch information
hjdivad committed Oct 19, 2016
1 parent 75c1a75 commit 88c5287
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addon/-private/system/model/states.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,10 @@ const RootState = {

setup(internalModel) {
internalModel.clearRelationships();
var store = internalModel.store;
store._dematerializeRecord(internalModel);
// var store = internalModel.store;
// store._dematerializeRecord(internalModel);

// TODO: internalModel.dematerializeRecord() ?
},

invokeLifecycleCallbacks(internalModel) {
Expand Down
1 change: 1 addition & 0 deletions addon/-private/system/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@ Store = Service.extend({

var resolver = Ember.RSVP.defer('Fetching ' + typeClass + 'with id: ' + internalModel.id);
var pendingFetchItem = {
// TODO: s/record/internalModel
record: internalModel,
resolver: resolver,
options: options
Expand Down

0 comments on commit 88c5287

Please sign in to comment.