Ember data's DS.Store has a filter
function that calls adapter.shouldSave(record)
(github). In the case of using Ember data's RESTAdapter, the RESTAdapter's shouldSave
function is called.
shouldSave
returns !reference.parent
(github) where reference
seems to be just like the record from the debugging I've done. But I couldn't find the parent
of the reference I was working with.
Question 1: Does anyone know what return !reference.parent
means here for the RESTAdapter?
Question 2: What does the Ember.K
mean in the generic Ember data Adapter's shouldSave
(see github)?