Skip to content

Commit

Permalink
Update mod.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxodin committed Sep 8, 2023
1 parent cc81cb4 commit fdbbb03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit fdbbb03

Please sign in to comment.