{"action":"created","issue":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/813","repository_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows","labels_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/813/labels{/name}","comments_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/813/comments","events_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/813/events","html_url":"https://github.com/appcelerator/titanium_mobile_windows/pull/813","id":170496198,"number":813,"title":"[TIMOB-23734] Fix ListView fireListSectionEvent()","user":{"login":"garymathews","id":8366993,"avatar_url":"https://avatars.githubusercontent.com/u/8366993?v=3","gravatar_id":"","url":"https://api.github.com/users/garymathews","html_url":"https://github.com/garymathews","followers_url":"https://api.github.com/users/garymathews/followers","following_url":"https://api.github.com/users/garymathews/following{/other_user}","gists_url":"https://api.github.com/users/garymathews/gists{/gist_id}","starred_url":"https://api.github.com/users/garymathews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garymathews/subscriptions","organizations_url":"https://api.github.com/users/garymathews/orgs","repos_url":"https://api.github.com/users/garymathews/repos","events_url":"https://api.github.com/users/garymathews/events{/privacy}","received_events_url":"https://api.github.com/users/garymathews/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-10T19:17:03Z","updated_at":"2016-08-10T20:53:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/pulls/813","html_url":"https://github.com/appcelerator/titanium_mobile_windows/pull/813","diff_url":"https://github.com/appcelerator/titanium_mobile_windows/pull/813.diff","patch_url":"https://github.com/appcelerator/titanium_mobile_windows/pull/813.patch"},"body":"- Fixed `fireListSectionEvent()` handling of `ListView` item indexes\r\n- Fixed `Titanium.ListSection.deleteItemsAt()` erasing items before unregistering the layout node\r\n- Added test cases to test all events of `fireListSectionEvent()` with and without a header and footer\r\n\r\n###### TEST CASE\r\n```Javascript\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'blue' }),\r\n    section = Ti.UI.createListSection({\r\n        //headerTitle: 'HEADER',\r\n        //footerTitle: 'FOOTER',\r\n        items: [\r\n            { properties: { title: 'B' } },\r\n            { properties: { title: 'A' } },\r\n            { properties: { title: 'E' } },\r\n            { properties: { title: 'G' } }\r\n        ]\r\n    }),\r\n    listView = Ti.UI.createListView({ sections: [section] }),\r\n    items_a = [\r\n        { properties: { title: 'A' } },\r\n    ],\r\n    items_b = [\r\n        { properties: { title: 'C' } },\r\n        { properties: { title: 'D' } }\r\n    ],\r\n    items_c = [\r\n        { properties: { title: 'E' } },\r\n        { properties: { title: 'F' } },\r\n    ];\r\n\r\nlistView.addEventListener('click', function (e) {\r\n    section.updateItemAt(0, { properties: { title: 'A' } });\r\n    section.updateItemAt(1, { properties: { title: 'B' } });\r\n    section.updateItemAt(3, { properties: { title: 'F' } });\r\n    section.insertItemsAt(2, items_b);\r\n    section.deleteItemsAt(0, 1);\r\n    section.deleteItemsAt(3, 2);\r\n    section.appendItems(items_c);\r\n    section.insertItemsAt(0, items_a);\r\n});\r\n\r\nwin.add(listView);\r\nwin.open();\r\n```\r\n```\r\nA\r\nB\r\nC\r\nD\r\nE\r\nF\r\n```\r\n\r\n[JIRA Ticket](https://jira.appcelerator.org/browse/TIMOB-23734)"},"comment":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/comments/239000667","html_url":"https://github.com/appcelerator/titanium_mobile_windows/pull/813#issuecomment-239000667","issue_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/813","id":239000667,"user":{"login":"garymathews","id":8366993,"avatar_url":"https://avatars.githubusercontent.com/u/8366993?v=3","gravatar_id":"","url":"https://api.github.com/users/garymathews","html_url":"https://github.com/garymathews","followers_url":"https://api.github.com/users/garymathews/followers","following_url":"https://api.github.com/users/garymathews/following{/other_user}","gists_url":"https://api.github.com/users/garymathews/gists{/gist_id}","starred_url":"https://api.github.com/users/garymathews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garymathews/subscriptions","organizations_url":"https://api.github.com/users/garymathews/orgs","repos_url":"https://api.github.com/users/garymathews/repos","events_url":"https://api.github.com/users/garymathews/events{/privacy}","received_events_url":"https://api.github.com/users/garymathews/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T20:53:14Z","updated_at":"2016-08-10T20:53:14Z","body":"test this please"}}
{"actor":{"display_login":"garymathews"}}