{"action":"created","issue":{"url":"https://api.github.com/repos/metafizzy/packery/issues/472","repository_url":"https://api.github.com/repos/metafizzy/packery","labels_url":"https://api.github.com/repos/metafizzy/packery/issues/472/labels{/name}","comments_url":"https://api.github.com/repos/metafizzy/packery/issues/472/comments","events_url":"https://api.github.com/repos/metafizzy/packery/issues/472/events","html_url":"https://github.com/metafizzy/packery/issues/472","id":260100314,"number":472,"title":"reloadItems() not working with Webpack","user":{"login":"lamka02sk","id":8135372,"avatar_url":"https://avatars0.githubusercontent.com/u/8135372?v=4","gravatar_id":"","url":"https://api.github.com/users/lamka02sk","html_url":"https://github.com/lamka02sk","followers_url":"https://api.github.com/users/lamka02sk/followers","following_url":"https://api.github.com/users/lamka02sk/following{/other_user}","gists_url":"https://api.github.com/users/lamka02sk/gists{/gist_id}","starred_url":"https://api.github.com/users/lamka02sk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamka02sk/subscriptions","organizations_url":"https://api.github.com/users/lamka02sk/orgs","repos_url":"https://api.github.com/users/lamka02sk/repos","events_url":"https://api.github.com/users/lamka02sk/events{/privacy}","received_events_url":"https://api.github.com/users/lamka02sk/received_events","type":"User","site_admin":false},"labels":[{"id":37184589,"url":"https://api.github.com/repos/metafizzy/packery/labels/test%20case%20required","name":"test case required","color":"f7c6c7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-24T17:19:03Z","updated_at":"2017-10-04T14:35:05Z","closed_at":"2017-10-04T14:35:04Z","author_association":"NONE","body":"I am rewriting my existing project to webpack and got stuck at reloadItems function which is very very important for me. Browser console says: `TypeError: this.element is undefined`, so there is clearly something wrong with the packery scope inside this function. Any help?\r\n\r\nHere is my code: \r\n```javascript\r\nconst Packery = require('packery');\r\n\r\nlet packery = new Packery('.content-settings', {\r\n            itemSelector: '.component-element',\r\n            gutter: 22\r\n});\r\n\r\n// .. then I try to reload items and error happens\r\npackery.reloadItems();\r\n```"},"comment":{"url":"https://api.github.com/repos/metafizzy/packery/issues/comments/334176034","html_url":"https://github.com/metafizzy/packery/issues/472#issuecomment-334176034","issue_url":"https://api.github.com/repos/metafizzy/packery/issues/472","id":334176034,"user":{"login":"desandro","id":85566,"avatar_url":"https://avatars0.githubusercontent.com/u/85566?v=4","gravatar_id":"","url":"https://api.github.com/users/desandro","html_url":"https://github.com/desandro","followers_url":"https://api.github.com/users/desandro/followers","following_url":"https://api.github.com/users/desandro/following{/other_user}","gists_url":"https://api.github.com/users/desandro/gists{/gist_id}","starred_url":"https://api.github.com/users/desandro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desandro/subscriptions","organizations_url":"https://api.github.com/users/desandro/orgs","repos_url":"https://api.github.com/users/desandro/repos","events_url":"https://api.github.com/users/desandro/events{/privacy}","received_events_url":"https://api.github.com/users/desandro/received_events","type":"User","site_admin":false},"created_at":"2017-10-04T14:35:04Z","updated_at":"2017-10-04T14:35:04Z","author_association":"OWNER","body":"Sorry without a reduced test case I cannot debug this issue."}}
{"actor":{"display_login":"desandro"}}