{"action":"created","issue":{"url":"https://api.github.com/repos/Chimeejs/chimee-mobile-player/issues/19","repository_url":"https://api.github.com/repos/Chimeejs/chimee-mobile-player","labels_url":"https://api.github.com/repos/Chimeejs/chimee-mobile-player/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/Chimeejs/chimee-mobile-player/issues/19/comments","events_url":"https://api.github.com/repos/Chimeejs/chimee-mobile-player/issues/19/events","html_url":"https://github.com/Chimeejs/chimee-mobile-player/issues/19","id":321094852,"number":19,"title":"【建议】针对没有babel项目引入chimee的建议","user":{"login":"Zhang1051127659","id":19969080,"avatar_url":"https://avatars0.githubusercontent.com/u/19969080?v=4","gravatar_id":"","url":"https://api.github.com/users/Zhang1051127659","html_url":"https://github.com/Zhang1051127659","followers_url":"https://api.github.com/users/Zhang1051127659/followers","following_url":"https://api.github.com/users/Zhang1051127659/following{/other_user}","gists_url":"https://api.github.com/users/Zhang1051127659/gists{/gist_id}","starred_url":"https://api.github.com/users/Zhang1051127659/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zhang1051127659/subscriptions","organizations_url":"https://api.github.com/users/Zhang1051127659/orgs","repos_url":"https://api.github.com/users/Zhang1051127659/repos","events_url":"https://api.github.com/users/Zhang1051127659/events{/privacy}","received_events_url":"https://api.github.com/users/Zhang1051127659/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-08T08:43:38Z","updated_at":"2018-05-08T11:32:35Z","closed_at":null,"author_association":"NONE","body":"建议对于没有使用babel的项目引入chimee时不要直接引入`<script src='./lib/chimee-mobile-player.browser.js'></script>`\r\n\r\n我在使用chimee-mobile-player时直接查看文档看到文档中安装部分说:\r\n`首先根据您的业务场景，你可以直接将lib目录下适合的打包文件引入您的业务代码中，比如直接使用<script src='./lib/chimee-mobile-player.browser.js'></script>引用JS。`\r\n\r\n一时懵逼就按照这样的方式引用了，后来发现在低版本的安卓手机上点击屏幕部分会报`undefined is not a function `的错误，经过排查后发现是因为在`chimee-mobile-player.browser.js`的第12139行使用了数组的indexof方法判断当前点击元素是不是包含`chimee-state-play`这个节点，由于indexof是ES6语法，所以导致了上述错误。\r\n\r\n另外针对两个元素的包含关系的判断建议使用`node.contains()`这个方法。"},"comment":{"url":"https://api.github.com/repos/Chimeejs/chimee-mobile-player/issues/comments/387373111","html_url":"https://github.com/Chimeejs/chimee-mobile-player/issues/19#issuecomment-387373111","issue_url":"https://api.github.com/repos/Chimeejs/chimee-mobile-player/issues/19","id":387373111,"user":{"login":"yandeqiang","id":20136341,"avatar_url":"https://avatars0.githubusercontent.com/u/20136341?v=4","gravatar_id":"","url":"https://api.github.com/users/yandeqiang","html_url":"https://github.com/yandeqiang","followers_url":"https://api.github.com/users/yandeqiang/followers","following_url":"https://api.github.com/users/yandeqiang/following{/other_user}","gists_url":"https://api.github.com/users/yandeqiang/gists{/gist_id}","starred_url":"https://api.github.com/users/yandeqiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandeqiang/subscriptions","organizations_url":"https://api.github.com/users/yandeqiang/orgs","repos_url":"https://api.github.com/users/yandeqiang/repos","events_url":"https://api.github.com/users/yandeqiang/events{/privacy}","received_events_url":"https://api.github.com/users/yandeqiang/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T11:32:35Z","updated_at":"2018-05-08T11:32:35Z","author_association":"CONTRIBUTOR","body":" 这个属性确实是 es5 得。 babel 不会转这个。 那就引入 babel-polyfill 吧。我改下文档。"}}
{"actor":{"display_login":"yandeqiang"}}