Return the view that was instantiated by #view #26

merged 1 commit into from Jan 3, 2012

2 participants


When you instantiate a view through #view the view that was instantiated is returned allowing for chaining.

main.view(".header", new HeaderView).render();


@tbranyen tbranyen merged commit 69ec8a2 into tbranyen:master Jan 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment