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 075dd3d commit aa119df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit aa119df

Please sign in to comment.