From f149435f448dc7e9e40f70fab5122be25883317c Mon Sep 17 00:00:00 2001 From: Matt Kendall Date: Mon, 9 Jul 2018 09:56:53 -0400 Subject: [PATCH] No scope defined for i. fixes #21 --- src/creative.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/creative.js b/src/creative.js index 6d4d450e..e76b1510 100644 --- a/src/creative.js +++ b/src/creative.js @@ -51,7 +51,7 @@ pbjs.renderAd = function(doc, adId, dataObject) { */ function renderLegacy(doc, adId) { let w = window; - for (i = 0; i < 10; i++) { + for (let i = 0; i < 10; i++) { w = w.parent; if (w.pbjs) { try {