{ "id": "63408", "key": "TIMOB-2776", "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": "11240", "name": "Release 1.6.0 M07", "archived": true, "released": true, "releaseDate": "2011-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:00:03.000+0000", "created": "2011-04-15T03:29:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "enterprise", "release-1.6.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T02:00:03.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": "{html}
See log.
\n\nvar win = Ti.UI.createWindow({\n navBarHidden: true,\n exitOnClose: true,\n backgroundColor: '#fff'\n});\n\nvar view = Ti.UI.createView({\n width: 50,\n height: 50,\n left: 0,\n top: 0,\n backgroundColor:'#f00'\n});\n\nvar animateBtn = Ti.UI.createButton({\n left: 10,\n right: 10,\n height: 50,\n title: 'Animate'\n});\n\nanimateBtn.addEventListener('click', function(e) {\n view.animate({\n top: Ti.Platform.displayCaps.platformHeight - view.height,\n left: Ti.Platform.displayCaps.platformWidth - view.width,\n duration: 1000\n },\n function(e) {\n Ti.API.info('This is called multiple times.');\n });\n});\n\nwin.add(animateBtn);\nwin.add(view);\nwin.open();
\n
(from [aa8eb0af3564cca62e04fd8e561a019a57bf6c11])\ndon't allow clearAnimation to cause our animation listener to be\nre-entrant [#2776 state:fixed-in-qa milestone:\"Release 1.6.0\nM04\"]
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/aa8eb0af3564...
[INFO] Titanium SDK version: 1.6.0 (01/10/11\n08:25 3452f06), I only see the fix on 2.2 (droid 1 -2.2.1 and sim\n2.2) while on 2.1 sim and 1.6 device, I see:
\nI/TiAPI ( 4931): (kroll$4) [3458,20554] This is called multiple\ntimes.
\nI/TiAPI ( 4931): (kroll$4) [4,20558] This is called multiple\ntimes.
Moving to M07 so it can get worked.
(from [133d37e7f4d02329bb4a91ca71b90225210430c1])\nonly fire animation complete when the completion comes from the\nparent AnimationSet [#2776 state:fixed-in-qa]
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/133d37e7f4d0...
verified emulator 2.2 with test case from Fred. animate callback\nis invoked only once.