{ "id": "136360", "key": "AC-838", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2014-09-24T01:35:21.000+0000", "created": "2014-09-10T07:33:04.000+0000", "labels": [ "TCSupportTriage", "alloy-cli", "alloy-generate" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:07.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "{code:title=index.xml|borderStyle=solid}\r\n\r\n\t\r\n\r\n{code}\r\n\r\n{code:title=index.js|borderStyle=solid}\r\nAlloy.Collections.stores.reset([{\r\n\t\ttitle : \"Sample Title.\",\r\n\t\tsubtitle : \"Subtitle\",\r\n\t\tlatitude : 37.7728543,\r\n\t\tlongitude : -122.4131509\r\n\t}]);\r\n{code}\r\n\r\n{code:title=stores.js (compiled)|borderStyle=solid}\r\nif (e && e.fromAdapter) return;\r\n __alloyId26.opts || {};\r\n var models = __alloyId25.models;\r\n var len = models.length;\r\n var children = $.__views.mapView.children;\r\n for (var d = children.length - 1; d >= 0; d--) $.__views.mapView.remove(children[d]);\r\n for (var i = 0; len > i; i++) {\r\n var __alloyId23 = models[i];\r\n __alloyId23.__transform = {};\r\n $.__views.__alloyId24 = require(\"ti.map\").createAnnotation({\r\n latitude: 0/0,\r\n longitude: 0/0,\r\n title: \"undefined\" != typeof $model.__transform[\"title\"] ? $model.__transform[\"title\"] : $model.get(\"title\"),\r\n id: \"__alloyId24\"\r\n });\r\n }\r\n{code}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nYou could see that latitude and longitude is not binding properly. As well not added to map view.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Map View - data binding for annotation is not working", "creator": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium 3.3.0.GA\r\nAlloy 1.4.1\r\niOS 7.1", "comment": { "comments": [ { "id": "323486", "author": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, We have tried to reproduce the issue according to specification, with the following process describe below. we were unable to reproduce the issue. \r\n\r\nh5. STEP TO REPRODUCE\r\n\r\n- Create a alloy project.\r\n- Enable ti.map module to the project.\r\n- Copy \"index.xml\" code segment to the project \"index.xml\" file.\r\n- Copy \"index.js\" code segment to the project \"index.js\" file.\r\n- Create a new file name \"stores.js\" in project \"models\" folder.\r\n- copy \"stores.js\" code segment to the project \"stores.js\" file.\r\n- run the project.\r\n\r\nUnable to generate the issue according to the process, Error shows\r\n\r\n{code}\r\n[ERROR] : Error generating AST for \"/Users/GSLMAC002/Desktop/GeneralFile/barsa1/Resources/iphone/alloy/models/Stores.js\"\r\n[ERROR] : 'return' outside of function\r\n[ERROR] : line 6, column 30, position 121\r\n[ERROR] : Alloy compiler failed\r\n{code}\r\n\r\nPlease provide a Clean test case and proper steps to regenerate the issue. thanks.\r\n\r\n\r\n", "updateAuthor": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2014-09-13T09:29:16.000+0000", "updated": "2014-09-13T09:29:16.000+0000" }, { "id": "323487", "author": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I haven't used Alloy Models. I used a temporary backbone collection.\r\n\r\n{code:title=alloy.js|borderStyle=solid}\r\nAlloy.Collections.store = new Backbone.Collection([data]);\r\n{code}\r\n", "updateAuthor": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-09-13T11:38:32.000+0000", "updated": "2014-09-13T11:38:32.000+0000" }, { "id": "324695", "author": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "body": "@Amimul Hossain - Were you able to reproduce this issue?", "updateAuthor": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-09-19T13:15:06.000+0000", "updated": "2014-09-19T13:15:06.000+0000" }, { "id": "325330", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Will reopen if the reporter adds a full working testcase. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-09-24T01:35:21.000+0000", "updated": "2014-09-24T01:35:21.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }