haroldiedema / joii

Javascript Object Inheritance Implementation
MIT License
70 stars 13 forks source link

Broken setters in anonymous AMD module #29

Closed cjmanca closed 7 years ago

cjmanca commented 7 years ago

When JOII isn't in global scope, setters are broken.

This is presumably due to the way they are defined (eval'd functions, referencing "JOII.Compat.findJOIIName", which doesn't exist in global scope).

The obvious solution would be to change these from eval'd functions into closures.

haroldiedema commented 7 years ago

Cheers! 😄