{"action":"opened","issue":{"url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1151","labels_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1151/labels{/name}","comments_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1151/comments","events_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1151/events","html_url":"https://github.com/RubyLouvre/avalon/issues/1151","id":116070497,"number":1151,"title":"内置ADM加载器 加载 bower下载的最新raphael时,会出现错误,加载eve.js","user":{"login":"susan51531","id":2595468,"avatar_url":"https://avatars.githubusercontent.com/u/2595468?v=3","gravatar_id":"","url":"https://api.github.com/users/susan51531","html_url":"https://github.com/susan51531","followers_url":"https://api.github.com/users/susan51531/followers","following_url":"https://api.github.com/users/susan51531/following{/other_user}","gists_url":"https://api.github.com/users/susan51531/gists{/gist_id}","starred_url":"https://api.github.com/users/susan51531/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/susan51531/subscriptions","organizations_url":"https://api.github.com/users/susan51531/orgs","repos_url":"https://api.github.com/users/susan51531/repos","events_url":"https://api.github.com/users/susan51531/events{/privacy}","received_events_url":"https://api.github.com/users/susan51531/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-10T09:39:11Z","updated_at":"2015-11-10T09:39:11Z","closed_at":null,"body":"eve是在raphael.js文件中defined('eve')的\r\nraphael.js里面合并了两个模块,一个是eve,一个是raphael\r\n其中raphael依赖eve\r\n\r\n使用require.js时,没有错误,不会加载eve.js\r\n\r\nDEMO结构:\r\n<pre><code>\r\n├── bower.json\r\n├── index.html\r\n├── js\r\n│   └── app.js\r\n├── package.json\r\n└── vendor\r\n    ├── avalon\r\n    └── raphael\r\n</code></pre>\r\nbower.json:\r\n```javascript\r\n{\r\n  \"name\": \"demo\",\r\n  \"main\": \"index.js\",\r\n  \"dependencies\": {\r\n    \"avalon\": \"~1.5.5\",\r\n    \"raphael\": \"~2.1.4\"\r\n  }\r\n}\r\n```\r\nindex.html:\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <title></title>\r\n</head>\r\n<body>\r\n    <script src=\"vendor/avalon/avalon.js\" data-main=\"js/app.js\"></script>\r\n</body>\r\n</html>\r\n\r\n```\r\n\r\njs/app.js:\r\n```javascript\r\nrequire.config({\r\n    baseUrl: '.',\r\n    paths: {\r\n        raphael: 'vendor/raphael/raphael'\r\n    }\r\n});\r\n\r\nrequire(['raphael', 'domReady!'], function() {\r\n    debugger;\r\n});\r\n\r\n```"}}