uhop / dcl

Elegant minimalistic implementation of OOP with mixins + AOP in JavaScript for node.js and browsers.
http://www.dcljs.org/
Other
76 stars 10 forks source link

new Function vs function(){} #1

Closed phated closed 11 years ago

phated commented 11 years ago

When trying to use this in a Chrome Extension/App, CSP throws an error due to the use of new Function. Would it be possible to use function () {}, instead, to avoid this problem?

uhop commented 11 years ago

Sure thing. new Function was used mostly for historic reasons.

uhop commented 11 years ago

I plan to release 1.0.2 on Sunday. Please use the master branch for now. If you find any problems, please reopen the issue.