{ "id": "111186", "key": "TIMOB-13056", "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": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15277", "description": "2013 Sprint 06 Core", "name": "2013 Sprint 06 Core", "archived": true, "released": true, "releaseDate": "2013-03-25" }, { "id": "14816", "description": "2013 Sprint 06", "name": "2013 Sprint 06", "archived": true, "released": true, "releaseDate": "2013-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-20T05:03:41.000+0000", "created": "2013-03-14T00:41:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "qe-3.1.0" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:09.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h6.Issue\r\nWhen we evaluate a function that is to be executed in a WebView via evalJS(), sometimes it returns \"undefined\". When we execute another WebView JS function, it seems to clear up the issue for a bit, but then the issue returns to the original function.\r\n\r\nh6.steps to reproduce\r\n1. run the app (sample files attached)\r\n2. notice the UUID that's being logged to the console\r\n3. tap [dump html] button\r\n4. notice the UUID that's being logged to the console\r\n5. tap [get uuid] button\r\n6. notice the UUID is undefined (you may have to tap multiple times)\r\n7. repeat step 3 and 4\r\n8. repeat step 5 and 6, same issue arises\r\n", "attachment": [ { "id": "36285", "filename": "app.js", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-03-14T00:41:34.000+0000", "size": 1526, "mimeType": "text/javascript" }, { "id": "36287", "filename": "jquery-1.9.1.min.jsx", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-03-14T00:41:34.000+0000", "size": 92629, "mimeType": "application/octet-stream" }, { "id": "36286", "filename": "test.html", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-03-14T00:41:34.000+0000", "size": 883, "mimeType": "text/html" } ], "flagged": false, "summary": "Android: evalJS returns undefined when evaluating function", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Samsung Galaxy Nexus - Android 4.1.1 & Droid RAzr 2.3.5\r\nTi 3.0.GA & 3.1 CI SDK ", "comment": { "comments": [ { "id": "243086", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/3991", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-20T00:40:41.000+0000", "updated": "2013-03-20T00:40:41.000+0000" }, { "id": "247020", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "evalJS returns uuid in this case.Working fine, hence closing it.\r\n\r\nVerified on:\r\nDevice : Google Nexus 7, Android Version: 4.1\r\nSDK: 3.1.0.v20130409124549\r\nCLI version : 3.1.0-cr\r\nOS : MAC OSX 10.7.5\r\nAppcelerator Studio, build: 3.1.0.201304052347\r\nXCode : 4.5.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-04-11T07:00:53.000+0000", "updated": "2013-04-11T07:00:53.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }