"use strict"; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /** * Licensed Materials - Property of IBM * IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2019 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ define([], function () { var DashboardFeatures = function () { function DashboardFeatures() { _classCallCheck(this, DashboardFeatures); this.features = {}; } DashboardFeatures.prototype.addFeature = function addFeature(name, feature) { this.features[name] = feature; }; DashboardFeatures.prototype.onContentSelection = function onContentSelection(idList) { Object.values(this.features).forEach(function (feature) { if (feature.onContentSelection) { feature.onContentSelection(idList); } }); }; return DashboardFeatures; }(); return DashboardFeatures; }); //# sourceMappingURL=DashboardFeatures.js.map