{"action":"closed","issue":{"url":"https://api.github.com/repos/shershen08/vue-masonry/issues/48","repository_url":"https://api.github.com/repos/shershen08/vue-masonry","labels_url":"https://api.github.com/repos/shershen08/vue-masonry/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/shershen08/vue-masonry/issues/48/comments","events_url":"https://api.github.com/repos/shershen08/vue-masonry/issues/48/events","html_url":"https://github.com/shershen08/vue-masonry/issues/48","id":281711016,"node_id":"MDU6SXNzdWUyODE3MTEwMTY=","number":48,"title":"Destroy masonry on unbind","user":{"login":"MateuszPaulski","id":7768170,"node_id":"MDQ6VXNlcjc3NjgxNzA=","avatar_url":"https://avatars2.githubusercontent.com/u/7768170?v=4","gravatar_id":"","url":"https://api.github.com/users/MateuszPaulski","html_url":"https://github.com/MateuszPaulski","followers_url":"https://api.github.com/users/MateuszPaulski/followers","following_url":"https://api.github.com/users/MateuszPaulski/following{/other_user}","gists_url":"https://api.github.com/users/MateuszPaulski/gists{/gist_id}","starred_url":"https://api.github.com/users/MateuszPaulski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MateuszPaulski/subscriptions","organizations_url":"https://api.github.com/users/MateuszPaulski/orgs","repos_url":"https://api.github.com/users/MateuszPaulski/repos","events_url":"https://api.github.com/users/MateuszPaulski/events{/privacy}","received_events_url":"https://api.github.com/users/MateuszPaulski/received_events","type":"User","site_admin":false},"labels":[{"id":529522045,"node_id":"MDU6TGFiZWw1Mjk1MjIwNDU=","url":"https://api.github.com/repos/shershen08/vue-masonry/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-12-13T11:12:32Z","updated_at":"2018-10-30T14:33:14Z","closed_at":"2018-10-30T14:33:14Z","author_association":"NONE","body":"Hi\r\nI think there is a problem with resize events not being removed after directive unbind. Its creating new resize event every page view. I fixed it by adding another event that is fired in unbind method.\r\n```\r\ninserted: function (el, nodeObj) {\r\n       ....\r\n      Events.$on(EVENT_DESTROY, function (eventData) {\r\n        masonry.destroy()\r\n      })\r\n    },\r\n    unbind: function (el, nodeObj) {\r\n      Events.$emit(EVENT_DESTROY)    \r\n    }\r\n```"}}
{"actor":{"display_login":"shershen08"}}