donejs / done-component

A plugin for creating <can-component>s
https://www.npmjs.com/package/done-component
MIT License
8 stars 2 forks source link

done-component pollutes the global namespace with objects #62

Closed bmomberger-bitovi closed 6 years ago

bmomberger-bitovi commented 6 years ago

https://github.com/donejs/done-component/blob/master/component.js#L29 has a semicolon where a comma is intended (creating a list of variables) which has the effect of making the names declared after that line auto-globals in loose mode and throws an error if run in strict mode.