{ "id": "98424", "key": "TIMOB-10261", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-07-31T22:31:19.000+0000", "created": "2012-07-31T10:16:01.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "change", "event" ], "versions": [], "issuelinks": [ { "id": "19535", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "98423", "key": "TIMOB-10260", "fields": { "summary": "Android: Ti.App.Properties 'change' event parity for Android", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "19537", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "98422", "key": "AC-3213", "fields": { "summary": "Ti.App.Properties 'change' event parity for Android", "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" } }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "19578", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "98426", "key": "TIMOB-10262", "fields": { "summary": "MobileWeb: Ti.App.Properties 'change' event parity for Mobile Web", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "19536", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "98042", "key": "TIMOB-10314", "fields": { "summary": "iOS: Ti.App.Properties 'change' event", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-10T19:09:26.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": [], "description": "Taken from TC-1101:\r\n\r\nadded a \"change\" event to Ti.App.Properties to listen for changes of Properties\r\nThe test case comes with a settings.bundle in attachment which allows to really test that feature.\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\nvar info = Ti.UI.createLabel();\r\nwin.add(info);\r\n\r\nvar switchButton = Ti.UI.createSwitch({\r\n top:40,\r\n value:Ti.App.Properties.getBool('test') // mandatory property for iOS \r\n});\r\nswitchButton.addEventListener('change',function(_event){\r\n Ti.App.Properties.setBool('test', _event.value);\r\n});\r\nwin.add(switchButton);\r\n\r\nfunction onPropertiesChange()\r\n{\r\n switchButton.value = Ti.App.Properties.getBool('test');\r\n info.text = 'onPropertiesChange';\r\n Ti.API.info('onPropertiesChange')\r\n setTimeout(function(){info.text = '';}, 1000);\r\n}\r\n \r\nTi.App.Properties.addEventListener('change',onPropertiesChange);\r\n\r\nwin.addEventListener('close', function() {\r\n Ti.App.Properties.removeEventListener('change',onPropertiesChange);\r\n});\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Ti.App.Properties 'change' event parity for Mobile Web", "creator": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium 2.2.0 (master)\r\n", "comment": { "comments": [ { "id": "210930", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-10262.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-31T22:31:10.000+0000", "updated": "2012-07-31T22:31:10.000+0000" }, { "id": "411290", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-10T19:09:26.000+0000", "updated": "2017-03-10T19:09:26.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }