{ "id": "98426", "key": "TIMOB-10262", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-06-28T23:39:44.000+0000", "created": "2012-07-31T10:17:27.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "parity" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "19538", "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": "19578", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "98424", "key": "TIMOB-10261", "fields": { "summary": "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 } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20: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": [ { "id": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "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": "MobileWeb: 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": "423096", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving ticket as \"Won't Fix\" as MobileWeb has been deprecated.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-28T23:39:44.000+0000", "updated": "2017-06-28T23:39:44.000+0000" }, { "id": "436369", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:20:26.000+0000", "updated": "2018-04-04T23:20:26.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }