Reverted model modified hack

This commit is contained in:
Henry
2015-11-11 11:58:15 -08:00
parent 4c0a79116a
commit 5f8d13672f
2 changed files with 3 additions and 8 deletions

View File

@ -46,7 +46,7 @@ define(
* @constructor
* @implements {Action}
*/
function EditAction($location, navigationService, $log, now, context) {
function EditAction($location, navigationService, $log, context) {
var domainObject = (context || {}).domainObject;
// We cannot enter Edit mode if we have no domain object to
@ -65,7 +65,6 @@ define(
this.domainObject = domainObject;
this.$location = $location;
this.navigationService = navigationService;
this.now = now;
}
/**
@ -73,11 +72,7 @@ define(
*/
EditAction.prototype.perform = function () {
if (!this.domainObject.getDomainObject) {
//var editableModel =
// JSON.parse(JSON.stringify(this.domainObject.getModel()));
var editableModel = this.domainObject.getModel();
editableModel.modified = this.now();
this.navigationService.setNavigation(new EditableDomainObject(this.domainObject, editableModel));
this.navigationService.setNavigation(new EditableDomainObject(this.domainObject));
}
//this.$location.path("/edit");
};