{"action":"created","issue":{"url":"https://api.github.com/repos/desandro/masonry/issues/836","repository_url":"https://api.github.com/repos/desandro/masonry","labels_url":"https://api.github.com/repos/desandro/masonry/issues/836/labels{/name}","comments_url":"https://api.github.com/repos/desandro/masonry/issues/836/comments","events_url":"https://api.github.com/repos/desandro/masonry/issues/836/events","html_url":"https://github.com/desandro/masonry/issues/836","id":140658930,"number":836,"title":"HTMLElement is a function","user":{"login":"heyarny","id":821278,"avatar_url":"https://avatars.githubusercontent.com/u/821278?v=3","gravatar_id":"","url":"https://api.github.com/users/heyarny","html_url":"https://github.com/heyarny","followers_url":"https://api.github.com/users/heyarny/followers","following_url":"https://api.github.com/users/heyarny/following{/other_user}","gists_url":"https://api.github.com/users/heyarny/gists{/gist_id}","starred_url":"https://api.github.com/users/heyarny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heyarny/subscriptions","organizations_url":"https://api.github.com/users/heyarny/orgs","repos_url":"https://api.github.com/users/heyarny/repos","events_url":"https://api.github.com/users/heyarny/events{/privacy}","received_events_url":"https://api.github.com/users/heyarny/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/desandro/masonry/labels/test%20case%20required","name":"test case required","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-14T12:20:08Z","updated_at":"2016-03-14T14:28:15Z","closed_at":null,"body":"I was about to use masonry 4.0, but it never worked for me.\r\nAfter debugging the whole thing I saw it was never actually adding the elements, because the ``` elem instanceof HTMLElement``` always failed. Even thou it's a div element.\r\nNow I saw HTMLElement is actually a function, which in this case this line doesn't seem to make sense.\r\n\r\n```\r\nelems.forEach( function( elem ) {\r\n    // check that elem is an actual element\r\n    if ( !( elem instanceof HTMLElement ) ) {\r\n      return;\r\n    }\r\n```\r\n\r\nI saw some older issues (#524 ) on this which but they were fixed and belonged to the earlier versions.\r\nI don't get why this seems to be working on some examples, but mine is not working?\r\nUsing latest Chrome here."},"comment":{"url":"https://api.github.com/repos/desandro/masonry/issues/comments/196332899","html_url":"https://github.com/desandro/masonry/issues/836#issuecomment-196332899","issue_url":"https://api.github.com/repos/desandro/masonry/issues/836","id":196332899,"user":{"login":"heyarny","id":821278,"avatar_url":"https://avatars.githubusercontent.com/u/821278?v=3","gravatar_id":"","url":"https://api.github.com/users/heyarny","html_url":"https://github.com/heyarny","followers_url":"https://api.github.com/users/heyarny/followers","following_url":"https://api.github.com/users/heyarny/following{/other_user}","gists_url":"https://api.github.com/users/heyarny/gists{/gist_id}","starred_url":"https://api.github.com/users/heyarny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heyarny/subscriptions","organizations_url":"https://api.github.com/users/heyarny/orgs","repos_url":"https://api.github.com/users/heyarny/repos","events_url":"https://api.github.com/users/heyarny/events{/privacy}","received_events_url":"https://api.github.com/users/heyarny/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T14:28:15Z","updated_at":"2016-03-14T14:28:15Z","body":"@desandro thank you, but we decided not to use it further more because of a more important issue for us #837 "}}