{"action":"created","issue":{"url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/251","repository_url":"https://api.github.com/repos/miromannino/Justified-Gallery","labels_url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/251/comments","events_url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/251/events","html_url":"https://github.com/miromannino/Justified-Gallery/issues/251","id":271793935,"number":251,"title":"Not being able to destroy the gallery instance on clicking a button. It shows error \"Cannot read property 'css' of null\".","user":{"login":"bluerid","id":968650,"avatar_url":"https://avatars3.githubusercontent.com/u/968650?v=4","gravatar_id":"","url":"https://api.github.com/users/bluerid","html_url":"https://github.com/bluerid","followers_url":"https://api.github.com/users/bluerid/followers","following_url":"https://api.github.com/users/bluerid/following{/other_user}","gists_url":"https://api.github.com/users/bluerid/gists{/gist_id}","starred_url":"https://api.github.com/users/bluerid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluerid/subscriptions","organizations_url":"https://api.github.com/users/bluerid/orgs","repos_url":"https://api.github.com/users/bluerid/repos","events_url":"https://api.github.com/users/bluerid/events{/privacy}","received_events_url":"https://api.github.com/users/bluerid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-07T11:12:24Z","updated_at":"2017-11-09T02:59:48Z","closed_at":null,"author_association":"NONE","body":"While trying to use the plugin I used the destroy method. It works for the first element and then breaks leaving the consequent images without changing the css attributes.\r\n\r\n````\r\n    jquery.justifiedGallery.min.js?ver=v3.6.3:7 Uncaught TypeError: Cannot read property 'css' of null\r\n    at c.<anonymous> (jquery.justifiedGallery.min.js?ver=v3.6.3:7)\r\n    at HTMLDivElement.d (jquery.js?ver=1.12.4:2)\r\n    at Function.each (jquery.js?ver=1.12.4:2)\r\n    at c.destroy (jquery.justifiedGallery.min.js?ver=v3.6.3:7)\r\n    at HTMLDivElement.<anonymous> (jquery.justifiedGallery.min.js?ver=v3.6.3:7)\r\n    at Function.each (jquery.js?ver=1.12.4:2)\r\n    at a.fn.init.each (jquery.js?ver=1.12.4:2)\r\n    at a.fn.init.a.fn.justifiedGallery (jquery.justifiedGallery.min.js?ver=v3.6.3:7)\r\n    at HTMLElement.<anonymous> (ze-vc-gallery-masonry.js?ver=1.0.0:32)\r\n    at HTMLElement.dispatch (jquery.js?ver=1.12.4:3)\r\n````\r\nThis is how it looks.. \r\n![screen](https://user-images.githubusercontent.com/968650/32490840-9d91a2b0-c3da-11e7-94a0-27de0cbf550a.png)\r\n\r\nThis is the code I have used to destroy the instance of each gallery on click..\r\n```\r\n$('.gallery-list').click(function(){\r\n  \t$(this).parents('.gallery-wrapper')\r\n  \t\t.find('.masonary-grid')\r\n  \t\t.justifiedGallery('destroy');\r\n  });\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/comments/343032868","html_url":"https://github.com/miromannino/Justified-Gallery/issues/251#issuecomment-343032868","issue_url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/251","id":343032868,"user":{"login":"bluerid","id":968650,"avatar_url":"https://avatars3.githubusercontent.com/u/968650?v=4","gravatar_id":"","url":"https://api.github.com/users/bluerid","html_url":"https://github.com/bluerid","followers_url":"https://api.github.com/users/bluerid/followers","following_url":"https://api.github.com/users/bluerid/following{/other_user}","gists_url":"https://api.github.com/users/bluerid/gists{/gist_id}","starred_url":"https://api.github.com/users/bluerid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluerid/subscriptions","organizations_url":"https://api.github.com/users/bluerid/orgs","repos_url":"https://api.github.com/users/bluerid/repos","events_url":"https://api.github.com/users/bluerid/events{/privacy}","received_events_url":"https://api.github.com/users/bluerid/received_events","type":"User","site_admin":false},"created_at":"2017-11-09T02:59:48Z","updated_at":"2017-11-09T02:59:48Z","author_association":"NONE","body":"It is just the class selector. It should be masonry though, but I have got the selector wrong throughout. It works with the selector though. Only _destroy_ is not working."}}
{"actor":{"display_login":"bluerid"}}