object.js 410 B

12345678910111213
  1. "use strict";
  2. /**
  3. * @license
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. Object.defineProperty(exports, "__esModule", { value: true });
  7. exports.setData = void 0;
  8. var resource_url_impl_1 = require("../../internals/resource_url_impl");
  9. /** Sets the data attribute using a TrustedResourceUrl */
  10. function setData(obj, v) {
  11. obj.data = (0, resource_url_impl_1.unwrapResourceUrl)(v);
  12. }
  13. exports.setData = setData;