{ "id": "89651", "key": "TIMOB-8606", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13207", "name": "Sprint 2012-07", "archived": true, "released": true, "releaseDate": "2012-04-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-19T21:09:45.000+0000", "created": "2012-04-06T09:33:19.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_textarea", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "16726", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "89989", "key": "MOD-634", "fields": { "summary": "MDG iOS: TiRange Crashes App", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-07T05:36:30.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": "Run this code below. Logs will show the following exception\r\n[TiRange boundBridge:withKrollObject:]: unrecognized selector sent to instance 0x8dc9850\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({ backgroundColor:'#fff' });\r\n\r\nvar ta = Ti.UI.createTextArea({\r\n\tvalue:'I am a text area',\r\n\twidth:Ti.UI.FILL,\r\n\theight:100,\r\n\tborderStyle:Ti.UI.INPUT_BORDERSTYLE_LINE,\r\n\tborderWidth:1\r\n})\r\n\r\nta.addEventListener('selected',function(e){\r\n\tTi.API.info('Selected Fired Location:'+e.range.location+\" Length:\"+e.range.length)\r\n})\r\n\r\nwin1.add(ta);\r\nwin1.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "IOS: TextArea selected event throws exception ", "creator": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "199252", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Vishal\r\n\r\nWhen testing this I don't see the exception anymore, but I do see that the selected event is being fired twice. Is the expected behavior for the selected event to be fired twice?", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-19T16:34:56.000+0000", "updated": "2012-06-19T16:34:56.000+0000" }, { "id": "199261", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "We fire the selected event whenever the native OS says that the selection has changed. If the native code reports it twice we report it twice. Nothing in our code is generating the event twice.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-19T16:52:28.000+0000", "updated": "2012-06-19T16:52:28.000+0000" }, { "id": "199916", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.1.0.201206211609\r\nTi Mobile SDK 2.1.0.v20120622174154 hash rdc9dfbe5\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.1\r\n\r\nVerified expected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T13:37:46.000+0000", "updated": "2012-06-23T13:37:46.000+0000" }, { "id": "231407", "author": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Found this bug again:- In version 2.1.4.GA of Titanium SDK\r\n\r\nEvent is being triggered twice in iPad", "updateAuthor": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-14T10:09:03.000+0000", "updated": "2012-12-14T10:09:03.000+0000" }, { "id": "278599", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4876", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-07T05:36:30.000+0000", "updated": "2013-11-07T05:36:30.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }