-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Marionette 2.0 - getChildView doesn't use the child object it is passed #1567
Comments
I think this is to demonstrate that subclasses can use the provided to determine what kind of view should be returned. from the docs I'm not finding any tests for this behavior, but I'm thinking they should be added. |
That said, the same reasoning in #1566 applies here too. |
The fix for these is to add Documentation around why the argument is there. |
Agree with @samccone. A good number of Backbone and Marionette methods are passed arguments they don't need. This is sometimes intentional, other times not. The time's its intentional is because users will want to override methods to add new, or different functionality, so we give them the information that they need to do that. The cases we don't need it are when you can just as easily access the property on So if this passed |
Fix #1567 and add tests to cover getChildView taking a model
Line 2226
and
line 1953
The text was updated successfully, but these errors were encountered: