1234567891011121314151617181920212223242526272829 |
- "use strict";
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- define([], function () {
- var ContentRegistryUtil = function () {
- function ContentRegistryUtil() {
- _classCallCheck(this, ContentRegistryUtil);
- }
- ContentRegistryUtil.getCapabilities = function getCapabilities(content) {
- var capabilitiesFeature = void 0;
- if (content && content.getType()) {
- capabilitiesFeature = content.getFeature("ContentRegistry.internal." + content.getType() + "Capabilities");
- }
- return capabilitiesFeature;
- };
- return ContentRegistryUtil;
- }();
- return ContentRegistryUtil;
- });
|