{"action":"opened","issue":{"url":"https://api.github.com/repos/zurb/foundation-apps/issues/641","labels_url":"https://api.github.com/repos/zurb/foundation-apps/issues/641/labels{/name}","comments_url":"https://api.github.com/repos/zurb/foundation-apps/issues/641/comments","events_url":"https://api.github.com/repos/zurb/foundation-apps/issues/641/events","html_url":"https://github.com/zurb/foundation-apps/issues/641","id":89346860,"number":641,"title":"Modal not firing events when closed via backdrop click","user":{"login":"jakob-o","id":1359384,"avatar_url":"https://avatars.githubusercontent.com/u/1359384?v=3","gravatar_id":"","url":"https://api.github.com/users/jakob-o","html_url":"https://github.com/jakob-o","followers_url":"https://api.github.com/users/jakob-o/followers","following_url":"https://api.github.com/users/jakob-o/following{/other_user}","gists_url":"https://api.github.com/users/jakob-o/gists{/gist_id}","starred_url":"https://api.github.com/users/jakob-o/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakob-o/subscriptions","organizations_url":"https://api.github.com/users/jakob-o/orgs","repos_url":"https://api.github.com/users/jakob-o/repos","events_url":"https://api.github.com/users/jakob-o/events{/privacy}","received_events_url":"https://api.github.com/users/jakob-o/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-18T17:12:52Z","updated_at":"2015-06-18T17:12:52Z","closed_at":null,"body":"As the title states the foundation API does publish events when opening the modal and closing it via a close button but not when closing the modal via click on the backdrop. I created a minimal sample project to check it out here: https://github.com/jakob-o/modal-api-test\r\n\r\nThe modal code is copied from here http://foundation.zurb.com/apps/docs/#!/modal\r\n```html\r\n<a zf-open=\"basicModal\" class=\"button\">Open modal</a>\r\n<div zf-modal=\"\" id=\"basicModal\">\r\n  <a zf-close=\"\" class=\"close-button\">×</a>\r\n  <h3>Back in my days...</h3>\r\n  <p>There were 3 Star Wars movies and Disney only made cartoons.</p>\r\n</div>\r\n```\r\nThe controller code / API usage basically is this:\r\n```javascript\r\nfunction MainController($log, FoundationApi) {\r\n    FoundationApi.subscribe('basicModal', function(event) {\r\n        $log.info('Modal ' + event);\r\n    });\r\n}\r\n```\r\n\r\nIf this is intended behaviour, is there a way to test for the current state (open / closed)?\r\nThanks for the great product and investigating this issue\r\nRegards\r\nJakob"}}