mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 07:38:15 +00:00
[Creation] Use identifierService
...from CreationCapability.
This commit is contained in:
@ -38,11 +38,11 @@ define(
|
||||
if (separatorIndex > -1) {
|
||||
this.key = id.substring(separatorIndex + 1);
|
||||
this.space = id.substring(0, separatorIndex);
|
||||
this.spaceDefined = true;
|
||||
this.definedSpace = this.pace;
|
||||
} else {
|
||||
this.key = id;
|
||||
this.space = defaultSpace;
|
||||
this.spaceDefined = false;
|
||||
this.definedSpace = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
@ -54,8 +54,8 @@ define(
|
||||
return this.space;
|
||||
};
|
||||
|
||||
Identifier.prototype.hasDefinedSpace = function () {
|
||||
return this.spaceDefined;
|
||||
Identifier.prototype.getDefinedSpace = function () {
|
||||
return this.definedSpace;
|
||||
};
|
||||
|
||||
return Identifier;
|
||||
|
@ -35,7 +35,7 @@ define(
|
||||
|
||||
IdentifierProvider.prototype.generate = function (space) {
|
||||
var id = uuid();
|
||||
if (arguments.length > 0) {
|
||||
if (space !== undefined) {
|
||||
id = space + ":" + id;
|
||||
}
|
||||
return id;
|
||||
|
Reference in New Issue
Block a user