From aa119dfda2c63242291d18e6beddc6df2202bea9 Mon Sep 17 00:00:00 2001 From: Tobias Buschor Date: Fri, 8 Sep 2023 13:19:26 +0200 Subject: [PATCH] Update mod.js --- mod.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mod.js b/mod.js index 1aec6c8..9145030 100644 --- a/mod.js +++ b/mod.js @@ -369,10 +369,9 @@ function addGetters(url, props) { loadScriptSync('https://'+url); -console.log('hier:', this, obj) if (!this[prop]) this[prop] = exports[prop]; // todo: loop exports? // new: polyfill the prototype, not the instance, ok? - //if (!obj[prop]) obj[prop] = exports[prop]; // todo: loop exports? + if (!obj[prop]) obj[prop] = exports[prop]; // todo: loop exports? //if (this[prop] === undefined) console.error('lazyfill: the polyfill should have added the property "'+prop+'"'); return this[prop];