mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 15:43:48 +00:00
[JSDoc] Add annotations
Bulk-add JSDoc annotations, WTD-1482.
This commit is contained in:
@ -32,6 +32,8 @@ define(
|
||||
* which capabilities. This supports composition policy (rules
|
||||
* for which objects can contain which other objects) which
|
||||
* sometimes is determined based on the presence of capabilities.
|
||||
* @constructor
|
||||
* @memberof platform/containment
|
||||
*/
|
||||
function CapabilityTable(typeService, capabilityService) {
|
||||
var table = {};
|
||||
@ -64,6 +66,7 @@ define(
|
||||
/**
|
||||
* Check if a type is expected to expose a specific
|
||||
* capability.
|
||||
* @memberof platform/containment.CapabilityTable#
|
||||
*/
|
||||
hasCapability: function (typeKey, capabilityKey) {
|
||||
return (table[capabilityKey] || {})[typeKey];
|
||||
@ -73,4 +76,4 @@ define(
|
||||
|
||||
return CapabilityTable;
|
||||
}
|
||||
);
|
||||
);
|
||||
|
Reference in New Issue
Block a user