Lets suppose we have some Js Widget, that includes three objects view, controller, model.var MyWidget=function(){ this.setModel(new Model()); this.setView(new View()); this.setController(new Controller()); ...}And I create this widget this way widget=new MyWidget();There must be some enty point to start this widget.My question is - what is the best practise (and why) to define entry point: in constructor or in some method (run,init,etc). I mean:widget=new MyWidget(); //to create AND start widgetvswidget=new MyWidget() //to createwidget.run();  //to start
Entry point constructor vs init(),run() etc
design