{"action":"closed","issue":{"url":"https://api.github.com/repos/kenwheeler/slick/issues/1497","labels_url":"https://api.github.com/repos/kenwheeler/slick/issues/1497/labels{/name}","comments_url":"https://api.github.com/repos/kenwheeler/slick/issues/1497/comments","events_url":"https://api.github.com/repos/kenwheeler/slick/issues/1497/events","html_url":"https://github.com/kenwheeler/slick/issues/1497","id":92398226,"number":1497,"title":"slickRemove overwrites _.$slidesCache with current slides, so also removing filtered slides","user":{"login":"MrSkippy","id":5788078,"avatar_url":"https://avatars.githubusercontent.com/u/5788078?v=3","gravatar_id":"","url":"https://api.github.com/users/MrSkippy","html_url":"https://github.com/MrSkippy","followers_url":"https://api.github.com/users/MrSkippy/followers","following_url":"https://api.github.com/users/MrSkippy/following{/other_user}","gists_url":"https://api.github.com/users/MrSkippy/gists{/gist_id}","starred_url":"https://api.github.com/users/MrSkippy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrSkippy/subscriptions","organizations_url":"https://api.github.com/users/MrSkippy/orgs","repos_url":"https://api.github.com/users/MrSkippy/repos","events_url":"https://api.github.com/users/MrSkippy/events{/privacy}","received_events_url":"https://api.github.com/users/MrSkippy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kenwheeler/slick/labels/2.0:%20Considering","name":"2.0: Considering","color":"5319e7"},{"url":"https://api.github.com/repos/kenwheeler/slick/labels/Enhancement","name":"Enhancement","color":"cc317c"},{"url":"https://api.github.com/repos/kenwheeler/slick/labels/Feature%20Proposal","name":"Feature Proposal","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-01T14:25:23Z","updated_at":"2016-01-31T14:43:30Z","closed_at":"2016-01-31T14:43:30Z","body":"If you filter slides, the _.$slidesCache will still have them, but when you do 'slickRemove', it will overwrite it with the shown items after the removal and thus also removing filtered slides from the cache.\r\n\r\nIn method Slick.prototype.removeSlide / Slick.prototype.slickRemove\r\nline 1599: `_.$slidesCache = _.$slides;`\r\n\r\nImho the deletion should be done on the _.$slidesCache and then rerendered with the current filter.\r\n"}}