{"action":"created","issue":{"url":"https://api.github.com/repos/cubiq/iscroll/issues/1099","repository_url":"https://api.github.com/repos/cubiq/iscroll","labels_url":"https://api.github.com/repos/cubiq/iscroll/issues/1099/labels{/name}","comments_url":"https://api.github.com/repos/cubiq/iscroll/issues/1099/comments","events_url":"https://api.github.com/repos/cubiq/iscroll/issues/1099/events","html_url":"https://github.com/cubiq/iscroll/issues/1099","id":187480885,"number":1099,"title":"js update the dom, iscroll invalid?","user":{"login":"pcwang0205","id":10112141,"avatar_url":"https://avatars.githubusercontent.com/u/10112141?v=3","gravatar_id":"","url":"https://api.github.com/users/pcwang0205","html_url":"https://github.com/pcwang0205","followers_url":"https://api.github.com/users/pcwang0205/followers","following_url":"https://api.github.com/users/pcwang0205/following{/other_user}","gists_url":"https://api.github.com/users/pcwang0205/gists{/gist_id}","starred_url":"https://api.github.com/users/pcwang0205/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcwang0205/subscriptions","organizations_url":"https://api.github.com/users/pcwang0205/orgs","repos_url":"https://api.github.com/users/pcwang0205/repos","events_url":"https://api.github.com/users/pcwang0205/events{/privacy}","received_events_url":"https://api.github.com/users/pcwang0205/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-05T06:42:20Z","updated_at":"2016-11-08T10:10:04Z","closed_at":"2016-11-08T10:09:59Z","body":"```\r\n    $(function() {\r\n          let tabs = $('.weui_tab_content');\r\n          tabs.removeClass('weui_tab_content_active');\r\n         $(this).addClass('weui_tab_content_active');\r\n    });\r\n\r\n   dom is:  \r\n   <div class=\"weui_tab_content weui_tab_content_active\">\r\n          <div class=\"x_wrap\">\r\n               <div class=\"x_scroll\">\r\n                     <ul ng-init=\"dataset=['蔬菜', '禽蛋肉类', '河鲜海鲜', '米油', '店铺', '野味', '村味', '村味1', '村味2', '村味12', '村味24']\">\r\n                         <li ng-repeat=\"x in dataset\">{{x}}</li>\r\n                    </ul>\r\n                </div>\r\n          </div>\r\n   </div>\r\n\r\n<script>\r\n  var myScroll;\r\n  $(function() {\r\n    console.log('hello fuck');\r\n    myScroll = new IScroll('.x_wrap', { scrollX: true, scrollY: false, mouseWheel: true });\r\n  });\r\n  document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);\r\n</script>\r\n```\r\n\r\nwhen I remove the code of \r\n`    $(function() {\r\n          let tabs = $('.weui_tab_content');\r\n          tabs.removeClass('weui_tab_content_active');\r\n         $(this).addClass('weui_tab_content_active');\r\n    });\r\n`\r\nIt's ok....\r\n"},"comment":{"url":"https://api.github.com/repos/cubiq/iscroll/issues/comments/259096833","html_url":"https://github.com/cubiq/iscroll/issues/1099#issuecomment-259096833","issue_url":"https://api.github.com/repos/cubiq/iscroll/issues/1099","id":259096833,"user":{"login":"pcwang0205","id":10112141,"avatar_url":"https://avatars.githubusercontent.com/u/10112141?v=3","gravatar_id":"","url":"https://api.github.com/users/pcwang0205","html_url":"https://github.com/pcwang0205","followers_url":"https://api.github.com/users/pcwang0205/followers","following_url":"https://api.github.com/users/pcwang0205/following{/other_user}","gists_url":"https://api.github.com/users/pcwang0205/gists{/gist_id}","starred_url":"https://api.github.com/users/pcwang0205/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcwang0205/subscriptions","organizations_url":"https://api.github.com/users/pcwang0205/orgs","repos_url":"https://api.github.com/users/pcwang0205/repos","events_url":"https://api.github.com/users/pcwang0205/events{/privacy}","received_events_url":"https://api.github.com/users/pcwang0205/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T10:10:04Z","updated_at":"2016-11-08T10:10:04Z","body":"scroll.refresh() when update the dom"}}
{"actor":{"display_login":"pcwang0205"}}