{"action":"created","issue":{"url":"https://api.github.com/repos/aFarkas/lazysizes/issues/470","repository_url":"https://api.github.com/repos/aFarkas/lazysizes","labels_url":"https://api.github.com/repos/aFarkas/lazysizes/issues/470/labels{/name}","comments_url":"https://api.github.com/repos/aFarkas/lazysizes/issues/470/comments","events_url":"https://api.github.com/repos/aFarkas/lazysizes/issues/470/events","html_url":"https://github.com/aFarkas/lazysizes/issues/470","id":298636981,"number":470,"title":"respimg \"UMD\" pattern faulty","user":{"login":"emkayy","id":731228,"avatar_url":"https://avatars2.githubusercontent.com/u/731228?v=4","gravatar_id":"","url":"https://api.github.com/users/emkayy","html_url":"https://github.com/emkayy","followers_url":"https://api.github.com/users/emkayy/followers","following_url":"https://api.github.com/users/emkayy/following{/other_user}","gists_url":"https://api.github.com/users/emkayy/gists{/gist_id}","starred_url":"https://api.github.com/users/emkayy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emkayy/subscriptions","organizations_url":"https://api.github.com/users/emkayy/orgs","repos_url":"https://api.github.com/users/emkayy/repos","events_url":"https://api.github.com/users/emkayy/events{/privacy}","received_events_url":"https://api.github.com/users/emkayy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-20T15:29:56Z","updated_at":"2018-02-20T15:51:16Z","closed_at":null,"author_association":"NONE","body":"The new module pattern doesn't work for AMD.\r\nTo be honest, I don't know how it's supposed to work. It looks a lot more complicated than a regular UMD pattern.\r\n\r\nHowever, it seems like \r\n```\r\n} else if(typeof module == 'object' && module.exports){\r\n\tfactory(require('lazysizes'), require('../fix-ios-sizes/fix-ios-sizes'));\r\n```\r\ncan't work. I'm working with requirejs optimizer and there you'd need to test for something like\r\n```\r\nif (typeof define === 'function' && define.amd) \r\n```\r\nIn IE11 I get the error __Unable to get property 'aC' of undefined or null reference__\r\n"},"comment":{"url":"https://api.github.com/repos/aFarkas/lazysizes/issues/comments/367021640","html_url":"https://github.com/aFarkas/lazysizes/issues/470#issuecomment-367021640","issue_url":"https://api.github.com/repos/aFarkas/lazysizes/issues/470","id":367021640,"user":{"login":"emkayy","id":731228,"avatar_url":"https://avatars2.githubusercontent.com/u/731228?v=4","gravatar_id":"","url":"https://api.github.com/users/emkayy","html_url":"https://github.com/emkayy","followers_url":"https://api.github.com/users/emkayy/followers","following_url":"https://api.github.com/users/emkayy/following{/other_user}","gists_url":"https://api.github.com/users/emkayy/gists{/gist_id}","starred_url":"https://api.github.com/users/emkayy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emkayy/subscriptions","organizations_url":"https://api.github.com/users/emkayy/orgs","repos_url":"https://api.github.com/users/emkayy/repos","events_url":"https://api.github.com/users/emkayy/events{/privacy}","received_events_url":"https://api.github.com/users/emkayy/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T15:51:16Z","updated_at":"2018-02-20T15:51:16Z","author_association":"NONE","body":"And I guess you would have to call __factory__ rather like this:\r\n```define(['lazysizes', '../fix-ios-sizes/fix-ios-sizes'], factory);```\r\n... if I'm not mistaken?"}}
{"actor":{"display_login":"emkayy"}}