{ "id": "124171", "key": "ALOY-913", "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-08-26T18:23:47.000+0000", "created": "2013-12-24T14:42:05.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "qe-manualtest" ], "versions": [], "issuelinks": [ { "id": "37701", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "128606", "key": "ALOY-981", "fields": { "summary": "Implement KeyboardToolbar for TextArea", "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": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "37700", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "124741", "key": "ALOY-923", "fields": { "summary": "TextField with proxy property causes compile error as ItemTemplate", "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": "Medium", "id": "3" }, "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-08-27T23:22:27.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": "13605", "name": "Models" }, { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "index.xml:\r\n\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nAdd a viewMore function in index.js:\r\n\r\n{code:javaScript}\r\n\r\nfunction setQuantity(event) {\r\n alert('View more');\r\n}\r\n \r\n$.index.open();\r\n\r\n{code}\r\n\r\nh3. Results Alloy output\r\n\r\n{code:javaScript}\r\nfor (var i = 0; len > i; i++) {\r\n//...\r\nvar __alloyId219 = Ti.UI.createTextField({});\r\n\r\nsetQuantity ? $.__views.__alloyId211.addEventListener(\"blur\", setQuantity) : __defers[\"$.__views.__alloyId211!blur!setQuantity\"] = true;\r\n\r\n//...\r\n}\r\n{code}\r\n\r\nh3. error\r\n\r\nmessage = \"'undefined' is not an object (evaluating '$.__views.__alloyId211.addEventListener')\";", "attachment": [], "flagged": false, "summary": "Error TextField on addEventListener on dataCollection", "creator": { "name": "afranioce", "key": "afranioce", "displayName": "Afranio Martins", "active": true, "timeZone": "America/Argentina/Buenos_Aires" }, "subtasks": [], "reporter": { "name": "afranioce", "key": "afranioce", "displayName": "Afranio Martins", "active": true, "timeZone": "America/Argentina/Buenos_Aires" }, "environment": "alloy 1.3.0\r\nSDK 3.2.0.GA", "closedSprints": [ { "id": 180, "state": "closed", "name": "2014 Sprint 17 Alloy", "startDate": "2014-08-18T15:31:24.649Z", "endDate": "2014-09-01T15:31:00.000Z", "completeDate": "2014-09-02T07:53:26.447Z", "originBoardId": 124 }, { "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": "287254", "author": { "name": "afranioce", "key": "afranioce", "displayName": "Afranio Martins", "active": true, "timeZone": "America/Argentina/Buenos_Aires" }, "body": "h3. A solution that works, but do not know if it is correct\r\n\r\n{color:red}\r\nFile Alloy/commands/compile/parsers/Ti.UI.TextField.js\r\n{code}\r\n\r\n*After*\r\n{code:javaScript}\r\n\t// Update the parsing state\r\n\treturn {\r\n\t\tparent: {},\r\n\t\tstyles: state.styles,\r\n\t\tcode: code\r\n\t};\r\n{code}\r\n\r\n*Before*\r\n\r\n{code:javaScript}\r\n\t// Update the parsing state\r\n\tnodeState.styles = state.styles;\r\n\tnodeState.code = code;\r\n\treturn nodeState;\r\n{code}\r\n\r\n:D", "updateAuthor": { "name": "afranioce", "key": "afranioce", "displayName": "Afranio Martins", "active": true, "timeZone": "America/Argentina/Buenos_Aires" }, "created": "2014-01-08T19:47:48.000+0000", "updated": "2014-01-08T19:48:19.000+0000" }, { "id": "305525", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Fix for one is probably going to solve the other", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-05-19T16:36:43.000+0000", "updated": "2014-05-19T16:36:43.000+0000" }, { "id": "306647", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/419\r\nTest app: https://github.com/feons/alloy/tree/ALOY-913/test/apps/testing/ALOY-913\r\n\r\nFunctional Test:\r\n\r\n 1. Run the test app on iOS\r\n 2. Check Resources/iphone/alloy/controllers/index.js: \r\n{code:javascript}\r\n 37 var __alloyId6 = Ti.UI.createTextField({\r\n 38 right: 0,\r\n 39 height: \"50dp\",\r\n 40 width: \"100dp\",\r\n 41 borderColor: \"#ccc\",\r\n 42 borderWidth: 1,\r\n 43 value: \"1\",\r\n 44 color: \"#000\",\r\n 45 text: \"Quantity\"\r\n 46 });\r\n 47 __alloyId4.add(__alloyId6);\r\n 48 setQuantity ? __alloyId6.addEventListener(\"focus\", setQuantity) : __defers[\"__alloyId6!focus!setQuantity\"] = true;\r\n{code}\r\n 3. The event listener is attached to the right object *__alloyId6.*\r\n", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-05-28T14:40:22.000+0000", "updated": "2014-05-30T03:13:33.000+0000" }, { "id": "307007", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR tested and merged", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-05-30T14:27:02.000+0000", "updated": "2014-05-30T14:27:02.000+0000" }, { "id": "320036", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Event listener seems to be attached correctly, however the sample app presents a couple of issues. \r\n\r\n1. In Styles folder, instead of app.tss , there is an app.js , which in studio is generating an error message.\r\n2. Sample is not runnable on Android as in the index.xml the object is used, which is iOS only. Removing it , it runs fine also on Android.\r\n\r\nReopening.\r\n\r\nTiSDK 3.4.0.v20140820125714\r\nAppcelerator Studio 3.4.0.201408201526 \r\nCLI 3.4.0-dev\r\nAlloy 1.5.0-dev\r\nXcode6-beta5\r\n", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-22T23:32:51.000+0000", "updated": "2014-08-22T23:32:51.000+0000" }, { "id": "320275", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "Master PR: https://github.com/appcelerator/alloy/pull/525\r\n1_5_X PR: https://github.com/appcelerator/alloy/pull/526\r\n\r\nUpdated test app.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-08-26T04:49:15.000+0000", "updated": "2014-08-26T04:49:15.000+0000" }, { "id": "320277", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "[~skypanther] would you review & merge those PRs?", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-08-26T04:50:33.000+0000", "updated": "2014-08-26T04:50:33.000+0000" }, { "id": "320361", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I've merged the PR against master. However the PR on 1_5_X includes extraneous changes. It will need to be resubmitted.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-08-26T15:01:03.000+0000", "updated": "2014-08-26T15:01:03.000+0000" }, { "id": "320387", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "[~skypanther] Here's the new PR.\r\nNew PR for 1_5_X: https://github.com/appcelerator/alloy/pull/529\r\n", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-08-26T16:36:48.000+0000", "updated": "2014-08-26T16:36:48.000+0000" }, { "id": "320414", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Both PRs merged", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-08-26T18:23:47.000+0000", "updated": "2014-08-26T18:23:47.000+0000" }, { "id": "320699", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nMac OSX 10.9.4\r\nAppcelerator Studio, build: 3.4.0.201408270900\r\nTitanium SDK build: 3.4.0.v20140827134113 \r\nTitanium CLI, build: 3.4.0-dev\r\nAlloy: 1.5.0-dev\r\niOS Device 5S (7.1.1)\r\nAndroid Emulator 4.4.2\r\n\r\nEvent listener is attached correctly as per Federico's comment. Sample is now runnable on Android as has been removed and the app.js file in styles has been replaced by app.tss.\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2014-08-27T23:15:17.000+0000", "updated": "2014-08-27T23:15:17.000+0000" } ], "maxResults": 16, "total": 16, "startAt": 0 } } }