{ "id": "65752", "key": "TIMOB-5534", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-10-13T13:37:58.000+0000", "created": "2011-05-25T02:26:08.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2011-10-13T13:37:58.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": [], "description": "Events 'click' and 'dblclick' not works with switch object. \r\n{code:JavaScript}\r\nwin = Ti.UI.currentWindow;\r\n\r\nvar swit = Ti.UI.createSwitch({\r\n\ttop: 10,\r\n\tleft: 10,\r\n\theight: 100,\r\n\twidth: 100,\r\n});\r\n\r\nwin.add(swit);\r\n\r\nswit.addEventListener('click', function(){\r\n\talert('click works!');\r\n});\r\n\r\nswit.addEventListener('dblclick', function(){\r\n\talert('dblclick works');\r\n});\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: Event 'click' and 'dblclick' don't work with Switch.", "creator": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "subtasks": [], "reporter": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "environment": null, "comment": { "comments": [ { "id": "157120", "author": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "body": "Double click works fine. \r\nEvent click is fired twice when clicking not a checkbox, but over switch area.", "updateAuthor": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "created": "2011-06-20T04:52:43.000+0000", "updated": "2011-06-20T04:54:40.000+0000" }, { "id": "169247", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Moving ticket to mobileweb.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2011-10-13T13:37:24.000+0000", "updated": "2011-10-13T13:37:24.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }