ContentActionUtil.js 968 B

1234567891011121314151617181920212223242526272829303132
  1. "use strict";
  2. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3. /**
  4. * Licensed Materials - Property of IBM
  5. * IBM Watson Analytics (C) Copyright IBM Corp. 2019
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. define([], function () {
  9. var ContentActionUtil = function () {
  10. function ContentActionUtil() {
  11. _classCallCheck(this, ContentActionUtil);
  12. }
  13. ContentActionUtil.getNodes = function getNodes(controller, idList) {
  14. var nodes = [];
  15. idList.forEach(function (id) {
  16. var layoutView = controller.layoutController.getLayoutView(id);
  17. if (layoutView && layoutView.domNode) {
  18. nodes.push(layoutView.domNode);
  19. }
  20. });
  21. return nodes;
  22. };
  23. return ContentActionUtil;
  24. }();
  25. return ContentActionUtil;
  26. });
  27. //# sourceMappingURL=ContentActionUtil.js.map