taskrabbit/sudojs — pull request #3 by timmmichaud (2013-03-29 23:30:07+00:00)
Title: Access child views by reference

Would be cool to be able to get a child in a less verbose manner. Kinda like how you can just do page.model.data.foo, it would be cool to be able to do controller.child.foo.

Before: controller.getChild("map").hoverPin(id);
After: controller.child.map.hoverPin(id);

Another alternative would to call the namespace 'views' instead of 'child'. I kinda like this better actually.
After: controller.views.map.hoverPin(id);