{"action":"created","issue":{"url":"https://api.github.com/repos/madrobby/zepto/issues/802","labels_url":"https://api.github.com/repos/madrobby/zepto/issues/802/labels{/name}","comments_url":"https://api.github.com/repos/madrobby/zepto/issues/802/comments","events_url":"https://api.github.com/repos/madrobby/zepto/issues/802/events","html_url":"https://github.com/madrobby/zepto/pull/802","id":18596602,"number":802,"title":"Use `classList` to manipulate classes in modern browsers","user":{"login":"hkongm","id":1061323,"avatar_url":"https://avatars.githubusercontent.com/u/1061323?v=3","gravatar_id":"","url":"https://api.github.com/users/hkongm","html_url":"https://github.com/hkongm","followers_url":"https://api.github.com/users/hkongm/followers","following_url":"https://api.github.com/users/hkongm/following{/other_user}","gists_url":"https://api.github.com/users/hkongm/gists{/gist_id}","starred_url":"https://api.github.com/users/hkongm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkongm/subscriptions","organizations_url":"https://api.github.com/users/hkongm/orgs","repos_url":"https://api.github.com/users/hkongm/repos","events_url":"https://api.github.com/users/hkongm/events{/privacy}","received_events_url":"https://api.github.com/users/hkongm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/madrobby/zepto/labels/Enhancement","name":"Enhancement","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2013-08-27T09:32:44Z","updated_at":"2015-03-14T23:54:57Z","closed_at":"2013-09-13T14:31:21Z","pull_request":{"url":"https://api.github.com/repos/madrobby/zepto/pulls/802","html_url":"https://github.com/madrobby/zepto/pull/802","diff_url":"https://github.com/madrobby/zepto/pull/802.diff","patch_url":"https://github.com/madrobby/zepto/pull/802.patch"},"body":"使用高级浏览器提供的classList接口来操作class，在高级浏览器中普遍支持该接口。浏览器内部会优化class操作，减少recalculate和repainting造成的渲染消耗。"},"comment":{"url":"https://api.github.com/repos/madrobby/zepto/issues/comments/80764810","html_url":"https://github.com/madrobby/zepto/pull/802#issuecomment-80764810","issue_url":"https://api.github.com/repos/madrobby/zepto/issues/802","id":80764810,"user":{"login":"mislav","id":887,"avatar_url":"https://avatars.githubusercontent.com/u/887?v=3","gravatar_id":"","url":"https://api.github.com/users/mislav","html_url":"https://github.com/mislav","followers_url":"https://api.github.com/users/mislav/followers","following_url":"https://api.github.com/users/mislav/following{/other_user}","gists_url":"https://api.github.com/users/mislav/gists{/gist_id}","starred_url":"https://api.github.com/users/mislav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mislav/subscriptions","organizations_url":"https://api.github.com/users/mislav/orgs","repos_url":"https://api.github.com/users/mislav/repos","events_url":"https://api.github.com/users/mislav/events{/privacy}","received_events_url":"https://api.github.com/users/mislav/received_events","type":"User","site_admin":true},"created_at":"2015-03-14T23:54:57Z","updated_at":"2015-03-14T23:54:57Z","body":"Yes, except when I look at their commits, the implementation is not working. The code in this PR is routinely using `this.classList` in cases when `this` doesn't even refer to a DOM node, but to other things. We might open a new PR for this."}}