I\'m currently facing a conundrum: What is the right way to wire together 2 javascript objects?
Imagine an application like a text editor with several different fi
Dependency injection is probably your best bet. Compared to Java, some aspects of this are easier to do in JS code, since you can pass an object full of callbacks into your NotebookController. Other aspects are harder, because you don't have the static code analysis to formalize the interface between them.