mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 05:37:53 +00:00
[Framework] Fix code style for ExtensionRegistrar
Satisfy code style standards in ExtensionRegistrar. WTD-518.
This commit is contained in:
parent
78effaa09f
commit
126b515782
@ -20,21 +20,17 @@ define(
|
|||||||
|
|
||||||
function identify(category, extension, index) {
|
function identify(category, extension, index) {
|
||||||
var name = extension.key ?
|
var name = extension.key ?
|
||||||
(extension.key + "-" + index) :
|
(extension.key + "-" + index) :
|
||||||
index;
|
index;
|
||||||
return category + "[" + name + "]";
|
return category + "[" + name + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
function identifyCategory(category) {
|
|
||||||
return category + Constants.EXTENSION_SUFFIX;
|
|
||||||
}
|
|
||||||
|
|
||||||
function echo() {
|
function echo() {
|
||||||
return arguments.slice;
|
return arguments.slice;
|
||||||
}
|
}
|
||||||
|
|
||||||
function staticFunction(value) {
|
function staticFunction(value) {
|
||||||
return function () { return value; }
|
return function () { return value; };
|
||||||
}
|
}
|
||||||
|
|
||||||
// Utility function; create the second argument for Angular's
|
// Utility function; create the second argument for Angular's
|
||||||
|
Loading…
Reference in New Issue
Block a user