{ "id": "100811", "key": "TIMOB-10853", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14127", "description": "Sprint 2012-19 API", "name": "Sprint 2012-19 API", "archived": true, "released": true, "releaseDate": "2012-09-24" } ], "resolution": null, "resolutiondate": null, "created": "2012-09-11T16:14:15.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "module_app_properties", "parity", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-08-13T11:05:44.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "1. Run this code\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n \r\nfunction onPropertiesChange()\r\n{\r\n \r\n Ti.API.info('change fired')\r\n Ti.App.Properties.setBool('test', true);\r\n Ti.App.Properties.setDouble('test1', 2.5);\r\n Ti.App.Properties.setInt('test2', 45);\r\n Ti.App.Properties.setString('test3', \"hello\");\r\n}\r\n \r\nTi.App.Properties.addEventListener('change',onPropertiesChange);\r\n\r\nTi.App.Properties.setBool('test', true);\r\nTi.App.Properties.setDouble('test1', 2.5);\r\nTi.App.Properties.setInt('test2', 45);\r\nTi.App.Properties.setString('test3', \"hello\");\r\n \r\nwin.open();\r\n{code}\r\n\r\n2. Look at log and observe infinite loop. On Android, \"change\" is only called 4 times.\r\n\r\nExpected Behavior:\r\n- \"change\" should only be called 5 times - since iOS also adds appGUID when launching the app for the first time.", "attachment": [], "flagged": false, "summary": "iOS: Ti.App.Properties \"change\" event should not fire when setting an existing property to its current value", "creator": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "230202", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The change is fired 4 times on Android and 5 times on iOS.\r\nVerified on:\r\nTitanium Studio: 3.0.0.201211301903\r\nTitanium SDK:3.0.0.v20121204181658\r\nDevice: Nexus 7 (Android v4.1), iOS Simulator (v6.0), iPad2 (v5.1)\r\nXCode: 4.5.1", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-06T10:59:19.000+0000", "updated": "2012-12-06T10:59:19.000+0000" }, { "id": "266182", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nSDK: 3.1.2.v20130812225629\r\nAppcelertaor Studio: 3.1.2.201308091728\r\nOS: OSX 10.8.4\r\nDevice: iPhone5(v 6.1.4)\r\nXcode: 4.6.3\r\n\r\nChange event is fired 4 times on iOS whereas it should be fired 5 times since iOS also adds appGUID when launching the app for the first time", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-13T11:05:44.000+0000", "updated": "2013-08-13T11:05:44.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }