[Persistence] Remove persistence usage from LocationCapability

This commit is contained in:
Victor Woeltjen 2016-04-29 11:37:03 -07:00
parent 8756b7213f
commit dd6414daf0

View File

@ -78,17 +78,12 @@ define(
* completes.
*/
LocationCapability.prototype.setPrimaryLocation = function (location) {
var capability = this;
return this.domainObject.useCapability(
'mutation',
function (model) {
model.location = location;
}
).then(function () {
return capability.domainObject
.getCapability('persistence')
.persist();
});
);
};
/**