Consider having pushView method call render
Closed this issue · 1 comments
scttnlsn commented
If the render method needs access to the view stack it requires doing something like:
var view = new MyView();
viewStack.push(view);
view.render();
Being forced to think about this order of operations is not ideal. I can't really think of an example where one wouldn't want to render the view they are pushing onto the stack so perhaps pushView
should just call render
after the view is added to the stack.