{ "id": "107859", "key": "TIMOB-12448", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-05-01T22:35:12.000+0000", "created": "2013-01-15T06:40:00.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "linvalid" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:42.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "*Problem description*\r\nTitanium.Map.View.selectAnnotation() call throws in a simple usage scenario. In SDK 3.0.0, the crash does not occur.\r\n\r\n*Steps to reproduce* \r\n1. Create Titanium.Map\r\n2. Add annotation\r\n3. Immediately select the annotation.\r\n\r\n*Actual behavior*\r\nCrash (\"Cannot call method 'push' of undefined\").\r\n\r\n*Example*\r\n{code}\r\nvar mountainView = Titanium.Map.createAnnotation({\r\n\t latitude:37.390749,\r\n\t longitude:-122.081651,\r\n\t title:\"Movable Annotation\",\r\n\t subtitle:'draggable:true',\r\n\t pincolor:Titanium.Map.ANNOTATION_RED,\r\n\t animate:true,\r\n\t draggable:true,\r\n\t leftButton: '../images/appcelerator_small.png',\r\n\t myid:1 // Custom property to uniquely identify this annotation.\r\n\t});\t\r\n\t\r\n\tvar mapview = Titanium.Map.createView({\r\n\t\tmapType: Titanium.Map.STANDARD_TYPE,\r\n\t\tregion: {latitude:37.39, longitude:-122.08, \r\n latitudeDelta:0.01, longitudeDelta:0.01},\r\n\t\tanimate:true,\r\n\t\tregionFit:true,\r\n\t\tuserLocation:true\r\n\t});\r\n\r\n\tmapview.addAnnotation(mountainView);\r\n\tmapview.selectAnnotation(mountainView); // Uncaught TypeError: Cannot call method 'push' of undefined at /index.html (line 9930)\r\n{code}", "attachment": [ { "id": "34738", "filename": "TestMap.zip", "author": { "name": "aodukha", "key": "aodukha", "displayName": "Anatoliy Odukha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-15T06:40:00.000+0000", "size": 816828, "mimeType": "application/zip" } ], "flagged": false, "summary": "Mobile Web: Crash on Titanium.Map.View.selectAnnotation() call", "creator": { "name": "aodukha", "key": "aodukha", "displayName": "Anatoliy Odukha", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aodukha", "key": "aodukha", "displayName": "Anatoliy Odukha", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "mobilesdk-3.0.1.v20130114133207-win32.zip", "comment": { "comments": [ { "id": "418503", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving ticket as \"Won't Fix\" as MobileWeb is no longer supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-01T22:35:12.000+0000", "updated": "2017-05-01T22:35:12.000+0000" }, { "id": "436482", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:20:42.000+0000", "updated": "2018-04-04T23:20:42.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }