{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-js/issues/1551","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-js/issues/1551/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-js/issues/1551/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-js/issues/1551/events","html_url":"https://github.com/cocos2d/cocos2d-js/pull/1551","id":62226345,"number":1551,"title":"add cocos attr to the script element in templates","user":{"login":"thomas-jablonski","id":3533296,"avatar_url":"https://avatars.githubusercontent.com/u/3533296?v=3","gravatar_id":"","url":"https://api.github.com/users/thomas-jablonski","html_url":"https://github.com/thomas-jablonski","followers_url":"https://api.github.com/users/thomas-jablonski/followers","following_url":"https://api.github.com/users/thomas-jablonski/following{/other_user}","gists_url":"https://api.github.com/users/thomas-jablonski/gists{/gist_id}","starred_url":"https://api.github.com/users/thomas-jablonski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomas-jablonski/subscriptions","organizations_url":"https://api.github.com/users/thomas-jablonski/orgs","repos_url":"https://api.github.com/users/thomas-jablonski/repos","events_url":"https://api.github.com/users/thomas-jablonski/events{/privacy}","received_events_url":"https://api.github.com/users/thomas-jablonski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-16T22:37:16Z","updated_at":"2015-03-19T02:39:12Z","closed_at":"2015-03-19T02:38:59Z","pull_request":{"url":"https://api.github.com/repos/cocos2d/cocos2d-js/pulls/1551","html_url":"https://github.com/cocos2d/cocos2d-js/pull/1551","diff_url":"https://github.com/cocos2d/cocos2d-js/pull/1551.diff","patch_url":"https://github.com/cocos2d/cocos2d-js/pull/1551.patch"},"body":"To build project.json path, CCBoot.js is looking for a script element\r\nwith a cocos attribute. If element is not found, it loads project.json\r\nfrom the current URL.\r\ncocos attribute should be added in the template, because it is the\r\ndefault CCBoot.js' behaviour, and usually, project.json is located with\r\ngame.min.js file.\r\nhttps://github.com/cocos2d/cocos2d-html5/blob/develop/CCBoot.js#L2159"},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-js/issues/comments/83271774","html_url":"https://github.com/cocos2d/cocos2d-js/pull/1551#issuecomment-83271774","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-js/issues/1551","id":83271774,"user":{"login":"dingpinglv","id":1468062,"avatar_url":"https://avatars.githubusercontent.com/u/1468062?v=3","gravatar_id":"","url":"https://api.github.com/users/dingpinglv","html_url":"https://github.com/dingpinglv","followers_url":"https://api.github.com/users/dingpinglv/followers","following_url":"https://api.github.com/users/dingpinglv/following{/other_user}","gists_url":"https://api.github.com/users/dingpinglv/gists{/gist_id}","starred_url":"https://api.github.com/users/dingpinglv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dingpinglv/subscriptions","organizations_url":"https://api.github.com/users/dingpinglv/orgs","repos_url":"https://api.github.com/users/dingpinglv/repos","events_url":"https://api.github.com/users/dingpinglv/events{/privacy}","received_events_url":"https://api.github.com/users/dingpinglv/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T02:39:12Z","updated_at":"2015-03-19T02:39:12Z","body":"Thanks @thomas-jablonski ."}}