{"action":"created","issue":{"url":"https://api.github.com/repos/Dogfalo/materialize/issues/1833","repository_url":"https://api.github.com/repos/Dogfalo/materialize","labels_url":"https://api.github.com/repos/Dogfalo/materialize/issues/1833/labels{/name}","comments_url":"https://api.github.com/repos/Dogfalo/materialize/issues/1833/comments","events_url":"https://api.github.com/repos/Dogfalo/materialize/issues/1833/events","html_url":"https://github.com/Dogfalo/materialize/issues/1833","id":98276223,"number":1833,"title":"Feature Request: Toast Destroy","user":{"login":"danielhickman","id":5341898,"avatar_url":"https://avatars.githubusercontent.com/u/5341898?v=3","gravatar_id":"","url":"https://api.github.com/users/danielhickman","html_url":"https://github.com/danielhickman","followers_url":"https://api.github.com/users/danielhickman/followers","following_url":"https://api.github.com/users/danielhickman/following{/other_user}","gists_url":"https://api.github.com/users/danielhickman/gists{/gist_id}","starred_url":"https://api.github.com/users/danielhickman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielhickman/subscriptions","organizations_url":"https://api.github.com/users/danielhickman/orgs","repos_url":"https://api.github.com/users/danielhickman/repos","events_url":"https://api.github.com/users/danielhickman/events{/privacy}","received_events_url":"https://api.github.com/users/danielhickman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-07-30T22:11:17Z","updated_at":"2016-11-24T05:30:50Z","closed_at":null,"body":"I wish you could force a toast to destroy early with still executing callbacks. I'm using the cdnjs so I can't edit the script and the following one I copy and pasted from the timeout works only to remove it, not execute callbacks.\n\n``` javascript\n// Destroy MaterializeCSS Toasts\nfunction toastDestroy () {\n    var toasts = document.getElementsByClassName('toast');\n    for (var i = toasts.length - 1; i >= 0; i--) {\n        Vel(toasts[i], {\"opacity\": 0, marginTop: '-40px'}, { duration: 375,\n            easing: 'easeOutExpo',\n            queue: false,\n            complete: function(){\n                // Callback aborted\n                // Removal handled by materialize\n            }\n        });\n    };\n}\n```\n"},"comment":{"url":"https://api.github.com/repos/Dogfalo/materialize/issues/comments/262693568","html_url":"https://github.com/Dogfalo/materialize/issues/1833#issuecomment-262693568","issue_url":"https://api.github.com/repos/Dogfalo/materialize/issues/1833","id":262693568,"user":{"login":"kmmbvnr","id":282529,"avatar_url":"https://avatars.githubusercontent.com/u/282529?v=3","gravatar_id":"","url":"https://api.github.com/users/kmmbvnr","html_url":"https://github.com/kmmbvnr","followers_url":"https://api.github.com/users/kmmbvnr/followers","following_url":"https://api.github.com/users/kmmbvnr/following{/other_user}","gists_url":"https://api.github.com/users/kmmbvnr/gists{/gist_id}","starred_url":"https://api.github.com/users/kmmbvnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmmbvnr/subscriptions","organizations_url":"https://api.github.com/users/kmmbvnr/orgs","repos_url":"https://api.github.com/users/kmmbvnr/repos","events_url":"https://api.github.com/users/kmmbvnr/events{/privacy}","received_events_url":"https://api.github.com/users/kmmbvnr/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T05:30:50Z","updated_at":"2016-11-24T05:30:50Z","body":"Duplicate #1317"}}
{"actor":{"display_login":"kmmbvnr"}}