-
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
Region appendView use $el instead of el #3421
Comments
JSteunou
added a commit
that referenced
this issue
Aug 9, 2017
rafde
pushed a commit
that referenced
this issue
Aug 9, 2017
paulfalgout
added a commit
to paulfalgout/backbone.marionette
that referenced
this issue
Aug 14, 2017
Alternative solution to marionettejs#3421 This is a WIP and needs tests, but I think doing this check once on `_ensureElement` is better than within `attachHtml` And it makes `this.$el` more consistent and matches what happens in the region constructor This still needs a test
paulfalgout
added a commit
to paulfalgout/backbone.marionette
that referenced
this issue
Aug 15, 2017
Alternative solution to marionettejs#3421 This is a WIP and needs tests, but I think doing this check once on `_ensureElement` is better than within `attachHtml` And it makes `this.$el` more consistent and matches what happens in the region constructor This still needs a test
paulfalgout
added a commit
to paulfalgout/backbone.marionette
that referenced
this issue
Aug 17, 2017
Alternative solution to marionettejs#3421 I think doing this check once on `_ensureElement` is better than within `attachHtml` And it makes `this.$el` more consistent and matches what happens in the region constructor
JSteunou
pushed a commit
that referenced
this issue
Aug 17, 2017
Alternative solution to #3421 I think doing this check once on `_ensureElement` is better than within `attachHtml` And it makes `this.$el` more consistent and matches what happens in the region constructor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tricky regression from v3.4
In some context, a View could have a region with a selector like
[data-region="body"]
and another region with a childview with also[data-region="body"]
in its own DOMBefore v3.4 the append logic casted the region.el into jquery object to put the view content in it. The region.el is always the region.$el 1st element. See here & here
Since v3.4 the append logic uses the region.$el that could contains more than one element, thus the append will put the view inside the last element. See here & here
The text was updated successfully, but these errors were encountered: