{"action":"created","issue":{"url":"https://api.github.com/repos/muut/riotjs/issues/567","labels_url":"https://api.github.com/repos/muut/riotjs/issues/567/labels{/name}","comments_url":"https://api.github.com/repos/muut/riotjs/issues/567/comments","events_url":"https://api.github.com/repos/muut/riotjs/issues/567/events","html_url":"https://github.com/muut/riotjs/issues/567","id":66490961,"number":567,"title":"Leftover DOM elements when rendering an empty array","user":{"login":"chris-vaszauskas","id":189950,"avatar_url":"https://avatars.githubusercontent.com/u/189950?v=3","gravatar_id":"","url":"https://api.github.com/users/chris-vaszauskas","html_url":"https://github.com/chris-vaszauskas","followers_url":"https://api.github.com/users/chris-vaszauskas/followers","following_url":"https://api.github.com/users/chris-vaszauskas/following{/other_user}","gists_url":"https://api.github.com/users/chris-vaszauskas/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-vaszauskas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-vaszauskas/subscriptions","organizations_url":"https://api.github.com/users/chris-vaszauskas/orgs","repos_url":"https://api.github.com/users/chris-vaszauskas/repos","events_url":"https://api.github.com/users/chris-vaszauskas/events{/privacy}","received_events_url":"https://api.github.com/users/chris-vaszauskas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-05T22:42:44Z","updated_at":"2015-04-07T09:00:10Z","closed_at":null,"body":"When I render elements using a function inside each (ex: `<p each={ t in filtered() }...`), if `filtered` returns an empty array, sometimes DOM elements are leftover.\r\n\r\n\r\njsFiddle demo: http://jsfiddle.net/chrisvaszauskas/6mqkLrbt/1/"},"comment":{"url":"https://api.github.com/repos/muut/riotjs/issues/comments/90472245","html_url":"https://github.com/muut/riotjs/issues/567#issuecomment-90472245","issue_url":"https://api.github.com/repos/muut/riotjs/issues/567","id":90472245,"user":{"login":"pakastin","id":1475902,"avatar_url":"https://avatars.githubusercontent.com/u/1475902?v=3","gravatar_id":"","url":"https://api.github.com/users/pakastin","html_url":"https://github.com/pakastin","followers_url":"https://api.github.com/users/pakastin/followers","following_url":"https://api.github.com/users/pakastin/following{/other_user}","gists_url":"https://api.github.com/users/pakastin/gists{/gist_id}","starred_url":"https://api.github.com/users/pakastin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pakastin/subscriptions","organizations_url":"https://api.github.com/users/pakastin/orgs","repos_url":"https://api.github.com/users/pakastin/repos","events_url":"https://api.github.com/users/pakastin/events{/privacy}","received_events_url":"https://api.github.com/users/pakastin/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T09:00:10Z","updated_at":"2015-04-07T09:00:10Z","body":"Related to #533"}}