[API] Synchronize view to model

This commit is contained in:
Victor Woeltjen
2016-06-17 14:21:37 -07:00
parent 4a50f325cb
commit 370b515c23
2 changed files with 12 additions and 0 deletions

View File

@ -106,6 +106,10 @@ define([
var persistence = domainObject.getCapability('persistence');
return persistence.persist();
});
},
observe: function (domainObject, callback) {
var mutation = domainObject.getCapability('mutation');
return mutation.listen(callback);
}
};