Closed dmarcos closed 8 years ago
I think your code should not use the externally exposed API
changing the public facing API should not affect the code internally
I made the editor expose a singleton instead of the constructor. The other modules import it instead of relying in the editor variable of the window object. This way we decouple the internal from the publicly exposed API.
superb! thank you :)
It will break all the references to
editor
in the rest of the code.