{"action":"created","issue":{"url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/3540","repository_url":"https://api.github.com/repos/marionettejs/backbone.marionette","labels_url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/3540/labels{/name}","comments_url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/3540/comments","events_url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/3540/events","html_url":"https://github.com/marionettejs/backbone.marionette/issues/3540","id":273717679,"number":3540,"title":"Region reset called during view render does not clear the region.el when needed","user":{"login":"JSteunou","id":2323127,"avatar_url":"https://avatars3.githubusercontent.com/u/2323127?v=4","gravatar_id":"","url":"https://api.github.com/users/JSteunou","html_url":"https://github.com/JSteunou","followers_url":"https://api.github.com/users/JSteunou/followers","following_url":"https://api.github.com/users/JSteunou/following{/other_user}","gists_url":"https://api.github.com/users/JSteunou/gists{/gist_id}","starred_url":"https://api.github.com/users/JSteunou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSteunou/subscriptions","organizations_url":"https://api.github.com/users/JSteunou/orgs","repos_url":"https://api.github.com/users/JSteunou/repos","events_url":"https://api.github.com/users/JSteunou/events{/privacy}","received_events_url":"https://api.github.com/users/JSteunou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-14T09:16:23Z","updated_at":"2017-11-14T09:20:07Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Description\r\n\r\nKind of tricky but this is the use case: \r\n\r\n1. Create a view\r\n2. Manually init a region with a node element as el\r\n3. re-render the view\r\n4. region reset is invoked, emptying the region, but keeping the el\r\n5. try to `showChildView` on each view `onRender` => fail because region.el does not exists anymore\r\n\r\n### Expected behavior\r\n\r\nRegion el should be cleaned on reset if the reset is after a view render aka el do not exists in the DOM anymore\r\n\r\n### Actual behavior\r\n\r\nRegion el is kept, which lead to error on consecutive render\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/comments/344194409","html_url":"https://github.com/marionettejs/backbone.marionette/issues/3540#issuecomment-344194409","issue_url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/3540","id":344194409,"user":{"login":"JSteunou","id":2323127,"avatar_url":"https://avatars3.githubusercontent.com/u/2323127?v=4","gravatar_id":"","url":"https://api.github.com/users/JSteunou","html_url":"https://github.com/JSteunou","followers_url":"https://api.github.com/users/JSteunou/followers","following_url":"https://api.github.com/users/JSteunou/following{/other_user}","gists_url":"https://api.github.com/users/JSteunou/gists{/gist_id}","starred_url":"https://api.github.com/users/JSteunou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSteunou/subscriptions","organizations_url":"https://api.github.com/users/JSteunou/orgs","repos_url":"https://api.github.com/users/JSteunou/repos","events_url":"https://api.github.com/users/JSteunou/events{/privacy}","received_events_url":"https://api.github.com/users/JSteunou/received_events","type":"User","site_admin":false},"created_at":"2017-11-14T09:20:06Z","updated_at":"2017-11-14T09:20:06Z","author_association":"CONTRIBUTOR","body":"@marionettejs/marionette-core this is an actual issue for auto-region next feature and I dont know if this issue should be address today by Marionette or just document as good practice to user like \"Always reset your region.el after view render\" or just fix solely for and in next region.\r\n"}}
{"actor":{"display_login":"JSteunou"}}