{"action":"created","issue":{"url":"https://api.github.com/repos/snowkit/mint/issues/41","labels_url":"https://api.github.com/repos/snowkit/mint/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/snowkit/mint/issues/41/comments","events_url":"https://api.github.com/repos/snowkit/mint/issues/41/events","html_url":"https://github.com/snowkit/mint/issues/41","id":126851523,"number":41,"title":"ondestroy Signal not fired when destroy a mint.Window","user":{"login":"josuigoa","id":3088505,"avatar_url":"https://avatars.githubusercontent.com/u/3088505?v=3","gravatar_id":"","url":"https://api.github.com/users/josuigoa","html_url":"https://github.com/josuigoa","followers_url":"https://api.github.com/users/josuigoa/followers","following_url":"https://api.github.com/users/josuigoa/following{/other_user}","gists_url":"https://api.github.com/users/josuigoa/gists{/gist_id}","starred_url":"https://api.github.com/users/josuigoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josuigoa/subscriptions","organizations_url":"https://api.github.com/users/josuigoa/orgs","repos_url":"https://api.github.com/users/josuigoa/repos","events_url":"https://api.github.com/users/josuigoa/events{/privacy}","received_events_url":"https://api.github.com/users/josuigoa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-15T11:00:03Z","updated_at":"2016-01-18T16:32:38Z","closed_at":null,"body":"I have this piece of code and it keeps counting down after ```destroy()```is called\r\n```haxe\r\n   var w = new mint.Window({\r\n                parent: canvas,\r\n                name: 'window',\r\n                title: 'title',\r\n                options: {\r\n                    color:new Color().rgb(0x121212),\r\n                    color_titlebar:new Color().rgb(0x191919),\r\n                    label: { color:new Color().rgb(0x06b4fb) },\r\n                    close_button: { color:new Color().rgb(0x06b4fb) },\r\n                },\r\n                x:Luxe.screen.w*.25, y:Luxe.screen.h*.25, w:Luxe.screen.w*.5, h: Luxe.screen.h*.5,\r\n                w_min: 256, h_min:256,\r\n                collapsible:false, closable:true\r\n            });\r\n\r\n        var sec = 3;\r\n\r\n        var t = Luxe.timer.schedule(1, function(){\r\n                                            sec--;\r\n                                            trace('sec: $sec');\r\n                                            if (sec == 0) {\r\n                                                w.destroy();\r\n                                            }\r\n                                            }, true);\r\n\r\n        w.ondestroy.listen(function(){trace('destroyed'); t.stop();});\r\n```\r\n\r\nam I missing something?"},"comment":{"url":"https://api.github.com/repos/snowkit/mint/issues/comments/172578418","html_url":"https://github.com/snowkit/mint/issues/41#issuecomment-172578418","issue_url":"https://api.github.com/repos/snowkit/mint/issues/41","id":172578418,"user":{"login":"josuigoa","id":3088505,"avatar_url":"https://avatars.githubusercontent.com/u/3088505?v=3","gravatar_id":"","url":"https://api.github.com/users/josuigoa","html_url":"https://github.com/josuigoa","followers_url":"https://api.github.com/users/josuigoa/followers","following_url":"https://api.github.com/users/josuigoa/following{/other_user}","gists_url":"https://api.github.com/users/josuigoa/gists{/gist_id}","starred_url":"https://api.github.com/users/josuigoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josuigoa/subscriptions","organizations_url":"https://api.github.com/users/josuigoa/orgs","repos_url":"https://api.github.com/users/josuigoa/repos","events_url":"https://api.github.com/users/josuigoa/events{/privacy}","received_events_url":"https://api.github.com/users/josuigoa/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T16:32:38Z","updated_at":"2016-01-18T16:32:38Z","body":"oh, sorry for that! :)"}}