{ "id": "129878", "key": "ALOY-1003", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15909", "description": "Alloy 1.5.0", "name": "Alloy 1.5.0", "archived": false, "released": true, "releaseDate": "2014-09-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-28T14:54:34.000+0000", "created": "2014-05-01T18:29:18.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "38588", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "132070", "key": "ALOY-1058", "fields": { "summary": "Picker is not displayed if 'type' property is set in .TSS", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2014-09-15T09:32:26.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": "13603", "name": "Styling", "description": "TSS, dynamic styling, styling API" } ], "description": "I was running into the following compiler error when building my project with 1.4.0-dev:\r\n\r\n{code}\r\n[DEBUG] [ERROR] : Object # has no method 'indexOf'\r\n[DEBUG] [ERROR] Alloy compiler failed\r\n{code}\r\n\r\nI eventually traced this down to the use of the string \"type\" as my bindId in my ListItem template. The parse() method in default.js adds a property named \"type\" to view templates, which appears to be overwritten by my bindId value of \"type\", which causes processStyle() in styler.js to fail at line 359. I changed \"type\" to \"__type\" in both default.js and styler.js, which appears to have fixed the issue.\r\n\r\nTest case attached with commented-out working code in index.xml", "attachment": [ { "id": "48179", "filename": "TestListApp.zip", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-05-17T13:01:45.000+0000", "size": 6005784, "mimeType": "application/zip" } ], "flagged": false, "summary": "ListView binding compile error when \"type\" is used as a bindId", "creator": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Alloy 1.4.0-dev (8f169eb6616b0f24faf1bb16bacf6f17894d2be3)\r\nTi SDK 3.2.2.GA", "closedSprints": [ { "id": 117, "state": "closed", "name": "2014 Sprint 11 Alloy", "startDate": "2014-05-27T16:00:55.737Z", "endDate": "2014-06-07T04:00:00.000Z", "completeDate": "2014-06-09T14:18:58.490Z", "originBoardId": 124 } ], "comment": { "comments": [ { "id": "303206", "author": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR with test and fix sent: https://github.com/appcelerator/alloy/pull/382", "updateAuthor": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-01T18:36:55.000+0000", "updated": "2014-05-01T18:36:55.000+0000" }, { "id": "303296", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR passes all tests, changes appear to not affect use of Alloy only the compilation process, thus I've accepted and merged the PR.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-05-02T15:26:55.000+0000", "updated": "2014-05-02T15:26:55.000+0000" }, { "id": "303297", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR accepted and merged", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-05-02T15:27:29.000+0000", "updated": "2014-05-02T15:27:29.000+0000" }, { "id": "303346", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "The fix turned out to have unintended consequences not obvious from the automated tests. Reopening to come up with a different solution.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-05-02T21:30:27.000+0000", "updated": "2014-05-02T21:30:27.000+0000" }, { "id": "305403", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "Please run the attached test app to reproduce the error.\r\n\r\nindex.xml\r\n{code:javascript}\r\n\r\n\r\n\r\n\r\n\r\n{code}", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-05-17T13:01:45.000+0000", "updated": "2014-05-17T13:04:57.000+0000" }, { "id": "306396", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/417\r\nTest app: https://github.com/feons/alloy/tree/ALOY-1003/test/apps/testing/ALOY-1003\r\n\r\nFunctional Test:\r\n1. Test app uses \"type\" as the listview template bindid, it compiles with no error.\r\n2. Date time picker in the test app is parsed and loads fine.\r\n", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-05-26T06:33:46.000+0000", "updated": "2014-05-26T06:33:46.000+0000" }, { "id": "306650", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR merged", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-05-28T14:54:34.000+0000", "updated": "2014-05-28T14:54:34.000+0000" }, { "id": "323608", "author": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "body": "Closing the ticket as it's working with attached sample project. \r\n\r\n| Appcelerator Studio | 3.4.0.201409131030 |\r\n| Titanium SDK | 3.4.0.v20140913174915|\r\n| Alloy | 1.5.0-rc2|\r\n| CLI | 3.4.0-rc3 |\r\n| OS | OSX 10.9.4 |\r\n| Xcode | Xcode6-GM |\r\n| Device | iPhone5S(iOS 8.0) Simulator, Galaxy S5 (v4.4.2) device|", "updateAuthor": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-09-15T09:32:26.000+0000", "updated": "2014-09-15T09:32:26.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }