MCPcopy Create free account
hub / github.com/ampproject/amphtml / prepareData

Function prepareData

ads/vendors/ix.js:67–75  ·  view source on GitHub ↗

* @param {!Object} data

(data)

Source from the content-addressed store, hash-verified

65 * @param {!Object} data
66 */
67function prepareData(data) {
68 for (const attr in data) {
69 if (hasOwn(data, attr) && /^ix[A-Z]/.test(attr)) {
70 delete data[attr];
71 }
72 }
73 data.targeting = data.targeting || {};
74 data.targeting['IX_AMP'] = '1';
75}
76
77/**
78 * @param {string} siteID

Callers 1

callDoubleclickFunction · 0.70

Calls 2

hasOwnFunction · 0.90
testMethod · 0.45

Tested by

no test coverage detected