{ "id": "92300", "key": "TIMOB-9324", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-04-01T11:38:46.000+0000", "created": "2012-05-24T11:12:33.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "community" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:27:34.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When Ti.UI.Switch control is added to some view it fires 'change' even first time. \r\nExpected behavior is that it fires 'change' event only when user clicks on it.\r\nTested with Titanium SDK 2.1.0 on iOS 5.0 Simulator\r\n\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar simpleSwitch = Ti.UI.createSwitch({\r\n\tvalue : false\r\n})\r\n\r\nwin.add(simpleSwitch);\r\n\r\nsimpleSwitch.addEventListener('change', function(e) {\r\n\talert('Switch value: ' + e.value)\r\n})\r\n\r\nwin.open();\r\n\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Ti.UI.Switch control fires 'change' event on view loading.", "creator": { "name": "vale4674", "key": "vale4674", "displayName": "Dino Bartosak", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vale4674", "key": "vale4674", "displayName": "Dino Bartosak", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, build: 2.0.1.201204132053\r\nTitanium SDK: 2.0.1.GA2\r\nPlatform OS: iOS", "comment": { "comments": [ { "id": "244874", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-01T11:38:46.000+0000", "updated": "2013-04-01T11:38:46.000+0000" }, { "id": "414446", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:27:34.000+0000", "updated": "2017-03-21T21:27:34.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }