{"action":"created","issue":{"url":"https://api.github.com/repos/almende/vis/issues/883","labels_url":"https://api.github.com/repos/almende/vis/issues/883/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/883/comments","events_url":"https://api.github.com/repos/almende/vis/issues/883/events","html_url":"https://github.com/almende/vis/issues/883","id":81752764,"number":883,"title":"vis.js has more than one anonymous define","user":{"login":"sebestenyb","id":743212,"avatar_url":"https://avatars.githubusercontent.com/u/743212?v=3","gravatar_id":"","url":"https://api.github.com/users/sebestenyb","html_url":"https://github.com/sebestenyb","followers_url":"https://api.github.com/users/sebestenyb/followers","following_url":"https://api.github.com/users/sebestenyb/following{/other_user}","gists_url":"https://api.github.com/users/sebestenyb/gists{/gist_id}","starred_url":"https://api.github.com/users/sebestenyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebestenyb/subscriptions","organizations_url":"https://api.github.com/users/sebestenyb/orgs","repos_url":"https://api.github.com/users/sebestenyb/repos","events_url":"https://api.github.com/users/sebestenyb/events{/privacy}","received_events_url":"https://api.github.com/users/sebestenyb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/almende/vis/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-28T04:30:15Z","updated_at":"2015-05-28T19:06:07Z","closed_at":null,"body":"I have the error in the title when trying to use with requir.js\r\nWonder if  the code below should be\r\n```javascript\r\n(function webpackUniversalModuleDefinition(root, factory) {\r\n\tif(typeof exports === 'object' && typeof module === 'object')\r\n\t\tmodule.exports = factory();\r\n\telse if(typeof define === 'function' && define.amd)\r\n\t\tdefine(factory);\r\n\telse if(typeof exports === 'object')\r\n\t\texports[\"vis\"] = factory();\r\n\telse\r\n\t\troot[\"vis\"] = factory();\r\n})\r\n```\r\n\r\nthe following:\r\n\r\n`define(\"vis\", factory);`\r\n\r\nCheers, Sebi"},"comment":{"url":"https://api.github.com/repos/almende/vis/issues/comments/106568115","html_url":"https://github.com/almende/vis/issues/883#issuecomment-106568115","issue_url":"https://api.github.com/repos/almende/vis/issues/883","id":106568115,"user":{"login":"sebestenyb","id":743212,"avatar_url":"https://avatars.githubusercontent.com/u/743212?v=3","gravatar_id":"","url":"https://api.github.com/users/sebestenyb","html_url":"https://github.com/sebestenyb","followers_url":"https://api.github.com/users/sebestenyb/followers","following_url":"https://api.github.com/users/sebestenyb/following{/other_user}","gists_url":"https://api.github.com/users/sebestenyb/gists{/gist_id}","starred_url":"https://api.github.com/users/sebestenyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebestenyb/subscriptions","organizations_url":"https://api.github.com/users/sebestenyb/orgs","repos_url":"https://api.github.com/users/sebestenyb/repos","events_url":"https://api.github.com/users/sebestenyb/events{/privacy}","received_events_url":"https://api.github.com/users/sebestenyb/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T19:06:07Z","updated_at":"2015-05-28T19:06:07Z","body":"Yes, exactly the same error, like in that bug.\r\nWarning during optimisation, error when running.\r\nFound similar reports, that's why I suggested putting that string prefix in the define, which actually solves this issue: `define(\"vis\", factory);`\r\n\r\nOther suggestion is like this? https://github.com/jrburke/r.js/issues/558#issuecomment-33546625"}}