{ "id": "106591", "key": "AC-2386", "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": "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": "2013-04-05T20:59:38.000+0000", "created": "2012-12-15T16:21:26.000+0000", "labels": [ "api" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:25.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": "14545", "name": "Documentation" } ], "description": "The following code does not work\r\nvar tableFadeIn = Titanium.UI.createAnimation({duration:1000}); \r\ntableFadeIn.opacity = 1;\r\ntableFadeIn.visible = true;\r\n//tableFadeIn.duration = 1000; \r\ntableFadeIn.addEventListener('complete',function() { \r\n\tTi.API.info(\"never gets here\"); \r\n});\r\n\r\n\r\nThe following code does work\r\nvar tableFadeIn = Titanium.UI.createAnimation(); \r\ntableFadeIn.opacity = 1;\r\ntableFadeIn.visible = true;\r\ntableFadeIn.duration = 1000; \r\ntableFadeIn.addEventListener('complete',function() { \r\n\tTi.API.info(\"gets here\"); \r\n});\r\n", "attachment": [], "flagged": false, "summary": "Animation 'complete' event does not fire if animation created with passed object", "creator": { "name": "john.m.law@gmail.com", "key": "john.m.law@gmail.com", "displayName": "John Law", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "john.m.law@gmail.com", "key": "john.m.law@gmail.com", "displayName": "John Law", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "3.0.0 API", "comment": { "comments": [ { "id": "246052", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "Tested with SDK 3.0.2.GA and the following code:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'black'\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n backgroundColor: 'yellow',\r\n width: 100,\r\n height: 100,\r\n opacity: 0\r\n});\r\n\r\nvar tableFadeIn = Titanium.UI.createAnimation({duration:1000});\r\ntableFadeIn.opacity = 1;\r\ntableFadeIn.visible = true;\r\ntableFadeIn.addEventListener('complete',function() { Ti.API.info(\"never gets here\"); });\r\n\r\nwin.add(view);\r\n\r\nwin.open();\r\n\r\nview.animate(tableFadeIn);\r\n{code}\r\n\r\nAt the end of the animation, I can see the message in the log.", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-05T20:59:38.000+0000", "updated": "2013-04-05T20:59:38.000+0000" }, { "id": "286393", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "We have not heard back from you since you posted the issue. Not sure if this is still an issue that need a fix from our platform team. If so, please send us a test case so that we can take next necessary step to fix. If we don't hear back, we will assume the issue is no longer valid and close it. ", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-01T01:59:39.000+0000", "updated": "2014-01-01T01:59:39.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }