{"action":"created","issue":{"url":"https://api.github.com/repos/Elgg/Elgg/issues/8317","labels_url":"https://api.github.com/repos/Elgg/Elgg/issues/8317/labels{/name}","comments_url":"https://api.github.com/repos/Elgg/Elgg/issues/8317/comments","events_url":"https://api.github.com/repos/Elgg/Elgg/issues/8317/events","html_url":"https://github.com/Elgg/Elgg/issues/8317","id":77347543,"number":8317,"title":"elgg_define_js() affects the path of similarly named modules","user":{"login":"mrclay","id":170687,"avatar_url":"https://avatars.githubusercontent.com/u/170687?v=3","gravatar_id":"","url":"https://api.github.com/users/mrclay","html_url":"https://github.com/mrclay","followers_url":"https://api.github.com/users/mrclay/followers","following_url":"https://api.github.com/users/mrclay/following{/other_user}","gists_url":"https://api.github.com/users/mrclay/gists{/gist_id}","starred_url":"https://api.github.com/users/mrclay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrclay/subscriptions","organizations_url":"https://api.github.com/users/mrclay/orgs","repos_url":"https://api.github.com/users/mrclay/repos","events_url":"https://api.github.com/users/mrclay/events{/privacy}","received_events_url":"https://api.github.com/users/mrclay/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Elgg/Elgg/labels/dev%20usability","name":"dev usability","color":"444444"},{"url":"https://api.github.com/repos/Elgg/Elgg/labels/javascript","name":"javascript","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-17T16:49:54Z","updated_at":"2015-05-17T17:52:51Z","closed_at":null,"body":"I was surprised to find that this:\r\n```php\r\nelgg_define_js('ckeditor', [\r\n    'src' => '/mod/ckeditor/vendors/ckeditor/ckeditor.js',\r\n]);\r\n```\r\naffects how RequireJS looks for the module `ckeditor/foo`.\r\n\r\nInstead of the `js/ckeditor/foo.js` view, RequireJS tries to load `/mod/ckeditor/vendors/ckeditor/ckeditor/foo.js`. It's a reasonable behavior but unexpected from our docs."},"comment":{"url":"https://api.github.com/repos/Elgg/Elgg/issues/comments/102827073","html_url":"https://github.com/Elgg/Elgg/issues/8317#issuecomment-102827073","issue_url":"https://api.github.com/repos/Elgg/Elgg/issues/8317","id":102827073,"user":{"login":"ewinslow","id":356564,"avatar_url":"https://avatars.githubusercontent.com/u/356564?v=3","gravatar_id":"","url":"https://api.github.com/users/ewinslow","html_url":"https://github.com/ewinslow","followers_url":"https://api.github.com/users/ewinslow/followers","following_url":"https://api.github.com/users/ewinslow/following{/other_user}","gists_url":"https://api.github.com/users/ewinslow/gists{/gist_id}","starred_url":"https://api.github.com/users/ewinslow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewinslow/subscriptions","organizations_url":"https://api.github.com/users/ewinslow/orgs","repos_url":"https://api.github.com/users/ewinslow/repos","events_url":"https://api.github.com/users/ewinslow/events{/privacy}","received_events_url":"https://api.github.com/users/ewinslow/received_events","type":"User","site_admin":false},"created_at":"2015-05-17T17:52:51Z","updated_at":"2015-05-17T17:52:51Z","body":"Indeed."}}