From fdbbb035ca84c799c90ae412012642a28d686785 Mon Sep 17 00:00:00 2001 From: Tobias Buschor Date: Fri, 8 Sep 2023 13:26:18 +0200 Subject: [PATCH] Update mod.js --- mod.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod.js b/mod.js index c08e75e..1e0901f 100644 --- a/mod.js +++ b/mod.js @@ -370,11 +370,11 @@ function addGetters(url, props) { loadScriptSync('https://'+url); //if (!this[prop]) this[prop] = exports[prop]; // todo: loop exports? + //return this[prop]; + // new: polyfill the prototype, not the instance, ok? 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]; + return obj[prop]; }, set: function(v) { //deleteGetters();