mirror of
https://github.com/nasa/openmct.git
synced 2025-01-31 16:36:13 +00:00
Fixed JSLint
This commit is contained in:
parent
793ed7ebe6
commit
2f658348a8
@ -120,11 +120,11 @@ define(
|
|||||||
return promise.then(function(){
|
return promise.then(function(){
|
||||||
// ...to recursively copy it (and its children)
|
// ...to recursively copy it (and its children)
|
||||||
return self.copy(composee, originalParent).then(function(composee){
|
return self.copy(composee, originalParent).then(function(composee){
|
||||||
composeChild(composee, clonedParent)
|
composeChild(composee, clonedParent);
|
||||||
});
|
});
|
||||||
});}, self.$q.when(undefined)
|
});}, self.$q.when(undefined)
|
||||||
)
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A recursive function that will perform a bottom-up copy of
|
* A recursive function that will perform a bottom-up copy of
|
||||||
@ -138,10 +138,8 @@ define(
|
|||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
CopyTask.prototype.copy = function(originalObject, originalParent) {
|
CopyTask.prototype.copy = function(originalObject, originalParent) {
|
||||||
var self = this;
|
var self = this,
|
||||||
|
modelClone = {
|
||||||
//Make a clone of the model of the object to be copied
|
|
||||||
var modelClone = {
|
|
||||||
id: uuid(),
|
id: uuid(),
|
||||||
model: cloneObjectModel(originalObject.getModel()),
|
model: cloneObjectModel(originalObject.getModel()),
|
||||||
persistenceSpace: originalParent.hasCapability('persistence') && originalParent.getCapability('persistence').getSpace()
|
persistenceSpace: originalParent.hasCapability('persistence') && originalParent.getCapability('persistence').getSpace()
|
||||||
@ -158,7 +156,7 @@ define(
|
|||||||
return modelClone;
|
return modelClone;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Will build a graph of an object and all of its child objects in
|
* Will build a graph of an object and all of its child objects in
|
||||||
@ -197,7 +195,7 @@ define(
|
|||||||
.then(this.deferred.resolve, this.deferred.reject);
|
.then(this.deferred.resolve, this.deferred.reject);
|
||||||
|
|
||||||
return this.deferred.promise;
|
return this.deferred.promise;
|
||||||
}
|
};
|
||||||
|
|
||||||
return CopyTask;
|
return CopyTask;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user