{ "id": "124138", "key": "TIMOB-16072", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2019-11-13T17:51:11.000+0000", "created": "2013-12-23T09:31:16.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "alloy-v2", "cb-tooling", "supportTeam" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-11-13T17:51:11.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": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "If a function is declared in alloy.js, the project fails to run in LiveView. SDK 3.2.0 GA, Alloy 1.3.0. The same project works fine when LiveView is disabled.\r\n\r\nh5. Test Code\r\n\r\nalloy.js\r\n{code}\r\nfunction anything() {\r\n}\r\n\r\n{code}\r\nworkaround code in alloy.js\r\n {code}\r\n\r\nvar anything = function() {\r\n\r\n}\r\n{code}\r\n\r\nh5. Step to Reproduce\r\n\r\n\r\n# Create new alloy project \r\n# Add test code in alloy.js file \r\n{code}\r\nfunction anything() {\r\n}\r\n{code}\r\n# Active LiveView and run on iOS simulator \r\n# app will not working(freeze) \r\n# again update alloy.js file with following code \r\n{code}\r\nvar myfunction = function anything() {\r\n}\r\n{code}\r\n# Run again with LiveView\r\n# App will build successfully \r\n\r\n\r\nThanks ", "attachment": [ { "id": "44890", "filename": "build.log", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2014-01-02T12:38:32.000+0000", "size": 56129, "mimeType": "text/plain" }, { "id": "44892", "filename": "build copy.log", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2014-01-02T12:48:23.000+0000", "size": 5177, "mimeType": "text/plain" }, { "id": "44891", "filename": "iOS Simulator Screen shot Jan 2, 2014 6.40.01 PM.png", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2014-01-02T12:40:21.000+0000", "size": 524355, "mimeType": "image/png" } ], "flagged": false, "summary": "IOS: Function declared in alloy.js not working in LiveView", "creator": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Mac OS X 10.8.5\r\niOS Simulator 7.0.3\r\nxCode 5.0.2\r\nTi SDK 3.2.0.GA\r\nAlloy 1.3.0", "comment": { "comments": [], "maxResults": 2, "total": 2, "startAt": 0 } } }