cdglabs / apparatus

A hybrid graphics editor and programming environment for creating interactive diagrams.
http://aprt.us/
MIT License
1.03k stars 58 forks source link

Changed Node constructor to make it easier to override #51

Closed joshuahhh closed 8 years ago

joshuahhh commented 8 years ago

Currently, Node._createVariantWithHead sets the master and head of the new variant after it calls Node.constructor. But this causes problems since overridden constructors won't have access to master and head.