[Create] Clarify function naming

Per review feedback,
https://github.com/nasa/openmctweb/pull/666#discussion_r52625960
This commit is contained in:
Victor Woeltjen 2016-02-11 09:49:26 -08:00
parent 53a49a671b
commit 43d497e069

View File

@ -83,7 +83,9 @@ define(
CopyService.prototype.perform = function (domainObject, parent, filter) {
var policyService = this.policyService;
function completeFilter(domainObject) {
// Combines caller-provided filter (if any) with the
// baseline behavior of respecting creation policy.
function filterWithPolicy(domainObject) {
return (!filter || filter(domainObject)) &&
policyService.allow(
"creation",
@ -95,7 +97,7 @@ define(
return new CopyTask(
domainObject,
parent,
completeFilter,
filterWithPolicy,
this.$q
).perform();
} else {