-
Notifications
You must be signed in to change notification settings - Fork 39
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
Possible bug with the auto-generated prepareView() ? #194
Comments
This should not be a problem if you're trying to render an This was indirectly caused by the big debate on whether to replace dom elements or append into them when rendering subviews, that resulted on #132 being merged in. For now, I'd suggest you to specify a |
Thanks for the reply. I'm using the |
Late to the party... @claydodo what version of view-switcher are you using? I recently made changes to it so that in conforms to the view conventions. AmpersandJS/ampersand-view-switcher#37 Try setting view-switcher to 3.0.0 in your package.json |
@RickButler My projects's I'm switching from Backbone to Ampersand recently and find it extremely suitable for my need: neat data structure, nested properties and views, simple and direct logic, etc. Thanks for ALL you guys working for this library. |
ampersand-view/ampersand-view.js
Lines 304 to 306 in beb1bdf
The auto-generated
prepareView
function does not provide anel
argument to the constructor. As a result, the returned view instance'sel
may beundefined
, causingcontainer.appendChild(view.el)
inrenderSubview
to fail. Is this a bug, or am I using it in a wrong way?ampersand-view/ampersand-view.js
Lines 221 to 230 in beb1bdf
I found this issue when trying to use the example provided in ampersand-view's doc:
The text was updated successfully, but these errors were encountered: