{"action":"created","issue":{"url":"https://api.github.com/repos/yabwe/medium-editor-tables/issues/21","labels_url":"https://api.github.com/repos/yabwe/medium-editor-tables/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/yabwe/medium-editor-tables/issues/21/comments","events_url":"https://api.github.com/repos/yabwe/medium-editor-tables/issues/21/events","html_url":"https://github.com/yabwe/medium-editor-tables/issues/21","id":128414358,"number":21,"title":"AMD issues and fix","user":{"login":"ognivo","id":745164,"avatar_url":"https://avatars.githubusercontent.com/u/745164?v=3","gravatar_id":"","url":"https://api.github.com/users/ognivo","html_url":"https://github.com/ognivo","followers_url":"https://api.github.com/users/ognivo/followers","following_url":"https://api.github.com/users/ognivo/following{/other_user}","gists_url":"https://api.github.com/users/ognivo/gists{/gist_id}","starred_url":"https://api.github.com/users/ognivo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ognivo/subscriptions","organizations_url":"https://api.github.com/users/ognivo/orgs","repos_url":"https://api.github.com/users/ognivo/repos","events_url":"https://api.github.com/users/ognivo/events{/privacy}","received_events_url":"https://api.github.com/users/ognivo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-24T18:06:17Z","updated_at":"2016-01-24T18:53:49Z","closed_at":"2016-01-24T18:53:49Z","body":"Hello. The plugin doesn't load when I use it with RequireJS. Dependent module receives undefined instead of plugin constructor.\r\nTo fix it, the plugin function should be defined through defining function.\r\n```javascript\r\n} else if (typeof define === 'function' && define.amd) {\r\n  // define(factory); - RequireJS will think that factory defines something\r\n  define(function () { return factory}); // instead we use a wrapper, that will return our factory.\r\n```\r\n\r\nThis works and tested. You can see the same approach in Medium-Editor itself.\r\nhttps://github.com/yabwe/medium-editor/blob/master/dist/js/medium-editor.js#L391"},"comment":{"url":"https://api.github.com/repos/yabwe/medium-editor-tables/issues/comments/174329417","html_url":"https://github.com/yabwe/medium-editor-tables/issues/21#issuecomment-174329417","issue_url":"https://api.github.com/repos/yabwe/medium-editor-tables/issues/21","id":174329417,"user":{"login":"daviferreira","id":38787,"avatar_url":"https://avatars.githubusercontent.com/u/38787?v=3","gravatar_id":"","url":"https://api.github.com/users/daviferreira","html_url":"https://github.com/daviferreira","followers_url":"https://api.github.com/users/daviferreira/followers","following_url":"https://api.github.com/users/daviferreira/following{/other_user}","gists_url":"https://api.github.com/users/daviferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/daviferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviferreira/subscriptions","organizations_url":"https://api.github.com/users/daviferreira/orgs","repos_url":"https://api.github.com/users/daviferreira/repos","events_url":"https://api.github.com/users/daviferreira/events{/privacy}","received_events_url":"https://api.github.com/users/daviferreira/received_events","type":"User","site_admin":false},"created_at":"2016-01-24T18:53:49Z","updated_at":"2016-01-24T18:53:49Z","body":":+1: "}}