ecowden / pluto.js

JavaScript Dependency Injection
MIT License
8 stars 3 forks source link

Eliminate Ugly Constructor Hack #29

Closed ecowden closed 7 years ago

ecowden commented 7 years ago

Back when I originally made this, I was targeting browsers and Node.js v0.8.x. (Also, it's about the first thing I ever wrote in JavaScript.) Dynamically invoking constructor functions was black magic, so I relied on a big ol' switch statement.

Nowadays, this should be easier to work around.

ecowden commented 7 years ago

Fixed on one-oh-redesign branch.