Open Seanny123 opened 9 years ago
Can't help a lot here, but maybe you want to take a look at the changes I made in in the Nengo vis
branch. Apart from ripping out the editor, it is mostly untouched. But two changes were important as far as I remember:
We might also want to think about where to fix this ...
vis
branch if we want to share model visualization code.vis
branch requires the branch to be merged to use nengo_gui. Apart from code deduplication it might be helpful that I split the main.js
code into the pure visualization component and the editor component. That might make refactoring a bit easier as less code has to be considered at once.
Right now,
main.js
is big, flat and kind of ugly, despite being delightfully functional. After studying closures and prototypes, which is how OOP is implemented in JavaScript, I'm still a bit confused on how to move forward and have asked the Internet to help me out.What does everyone think?