{"action":"closed","issue":{"url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/2437","labels_url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/2437/labels{/name}","comments_url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/2437/comments","events_url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/2437/events","html_url":"https://github.com/marionettejs/backbone.marionette/issues/2437","id":63285752,"number":2437,"title":"CollectionView.emptyView not shown when filtered collection is empty","user":{"login":"jackocnr","id":1186883,"avatar_url":"https://avatars.githubusercontent.com/u/1186883?v=3","gravatar_id":"","url":"https://api.github.com/users/jackocnr","html_url":"https://github.com/jackocnr","followers_url":"https://api.github.com/users/jackocnr/followers","following_url":"https://api.github.com/users/jackocnr/following{/other_user}","gists_url":"https://api.github.com/users/jackocnr/gists{/gist_id}","starred_url":"https://api.github.com/users/jackocnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackocnr/subscriptions","organizations_url":"https://api.github.com/users/jackocnr/orgs","repos_url":"https://api.github.com/users/jackocnr/repos","events_url":"https://api.github.com/users/jackocnr/events{/privacy}","received_events_url":"https://api.github.com/users/jackocnr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marionettejs/backbone.marionette/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"cmaher","id":1278501,"avatar_url":"https://avatars.githubusercontent.com/u/1278501?v=3","gravatar_id":"","url":"https://api.github.com/users/cmaher","html_url":"https://github.com/cmaher","followers_url":"https://api.github.com/users/cmaher/followers","following_url":"https://api.github.com/users/cmaher/following{/other_user}","gists_url":"https://api.github.com/users/cmaher/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaher/subscriptions","organizations_url":"https://api.github.com/users/cmaher/orgs","repos_url":"https://api.github.com/users/cmaher/repos","events_url":"https://api.github.com/users/cmaher/events{/privacy}","received_events_url":"https://api.github.com/users/cmaher/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/marionettejs/backbone.marionette/milestones/31","html_url":"https://github.com/marionettejs/backbone.marionette/milestones/v2.4.2","labels_url":"https://api.github.com/repos/marionettejs/backbone.marionette/milestones/31/labels","id":1006045,"number":31,"title":"v2.4.2","description":null,"creator":{"login":"samccone","id":883126,"avatar_url":"https://avatars.githubusercontent.com/u/883126?v=3","gravatar_id":"","url":"https://api.github.com/users/samccone","html_url":"https://github.com/samccone","followers_url":"https://api.github.com/users/samccone/followers","following_url":"https://api.github.com/users/samccone/following{/other_user}","gists_url":"https://api.github.com/users/samccone/gists{/gist_id}","starred_url":"https://api.github.com/users/samccone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samccone/subscriptions","organizations_url":"https://api.github.com/users/samccone/orgs","repos_url":"https://api.github.com/users/samccone/repos","events_url":"https://api.github.com/users/samccone/events{/privacy}","received_events_url":"https://api.github.com/users/samccone/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":3,"state":"open","created_at":"2015-03-04T16:29:23Z","updated_at":"2015-04-06T14:36:13Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-03-20T19:15:37Z","updated_at":"2015-04-06T14:36:13Z","closed_at":"2015-04-06T14:36:13Z","body":"When **not** using CollectionView.filter, if you remove the last model from the collection, the CollectionView will automatically display the emptyView. When you **are** using CollectionView.filter however, if you remove the last model that matches the filter, it doesn't display the emptyView, presumably because the pre-filtered collection is not empty. This leaves you with a broken empty state (no childViews are rendered, but no emptyView is rendered either).\r\n\r\nDemo here: http://codepen.io/jackocnr/pen/wBRyrE?editors=101\r\n\r\nWorkaround:\r\n```js\r\nonRemoveChild: function() {\r\nif (!this.children.length) { this.showEmptyView(); }\r\n}\r\n```"}}