[Code Style] Rename shadowing variables
This commit is contained in:
@@ -126,11 +126,11 @@ define(
|
||||
|
||||
label = this.verb + " To";
|
||||
|
||||
validateLocation = function (newParent) {
|
||||
validateLocation = function (newParentObj) {
|
||||
var newContext = self.cloneContext();
|
||||
newContext.selectedObject = object;
|
||||
newContext.domainObject = newParent;
|
||||
return composeService.validate(object, newParent) &&
|
||||
newContext.domainObject = newParentObj;
|
||||
return composeService.validate(object, newParentObj) &&
|
||||
self.policyService.allow("action", self, newContext);
|
||||
};
|
||||
|
||||
@@ -139,8 +139,8 @@ define(
|
||||
label,
|
||||
validateLocation,
|
||||
currentParent
|
||||
).then(function (newParent) {
|
||||
return composeService.perform(object, newParent);
|
||||
).then(function (newParentObj) {
|
||||
return composeService.perform(object, newParentObj);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user