{ "id": "164074", "key": "TIMOB-24051", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-11-11T07:31:17.000+0000", "created": "2016-10-19T08:53:26.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-6.0.0" ], "versions": [], "issuelinks": [ { "id": "53148", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "161432", "key": "TIMOB-23572", "fields": { "summary": "iOS/Android: Add the ability to remove all Ti.App.Properties at once", "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": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-12-22T23:06:44.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nTIMOB-23572 implemented Ti.App.Properties.removeAllProperties() for iOS/Android, it should also be implemented for Windows too. Demo code below\r\n\r\n{code}\r\n// Check the initial properties (should only be the iOS ones)\r\nTi.API.warn(Ti.App.Properties.listProperties());\r\n \r\n// Add all possible property-types (bool, int, double, string, object & list)\r\nTi.App.Properties.setBool(\"testBool\", true)\r\nTi.API.warn(Ti.App.Properties.getBool(\"testBool\"));\r\n \r\nTi.App.Properties.setInt(\"testInt\", 1337)\r\nTi.API.warn(Ti.App.Properties.getInt(\"testInt\", 1337));\r\n \r\nTi.App.Properties.setDouble(\"testDouble\", 13.37);\r\nTi.API.warn(Ti.App.Properties.getDouble(\"testDouble\", 13.37));\r\n \r\nTi.App.Properties.setString(\"testString\", \"john_doe\")\r\nTi.API.warn(Ti.App.Properties.getString(\"testString\", \"john_doe\"));\r\n \r\nTi.App.Properties.setObject(\"testObject\", {appc: \"rocks\"})\r\nTi.API.warn(Ti.App.Properties.getObject(\"testObject\", {appc: \"rocks\"}));\r\n \r\nTi.App.Properties.setList(\"testList\", [\"appc\", \"rocks\"])\r\nTi.API.warn(Ti.App.Properties.getList(\"testList\", [\"appc\", \"rocks\"]));\r\n \r\n// Check the properties again. It should now include the keys of the custom properties\r\nTi.API.warn(Ti.App.Properties.listProperties());\r\n \r\n// Remove all custom properties\r\nTi.API.warn(Ti.App.Properties.removeAllProperties());\r\n \r\n// Check the properties a last time. The custom properties should not be included anymore\r\nTi.API.warn(Ti.App.Properties.listProperties());\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Add the ability to remove all Ti.App.Properties at once ", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "closedSprints": [ { "id": 752, "state": "closed", "name": "2016 Sprint 23 SDK", "startDate": "2016-11-05T00:39:37.027Z", "endDate": "2016-11-19T01:39:00.000Z", "completeDate": "2016-11-29T06:51:57.887Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "400311", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/890", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-03T04:55:10.000+0000", "updated": "2016-11-03T04:55:10.000+0000" }, { "id": "403834", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified improvement with the code provided in the description; {{.removeAllProperties()}} showed no properties. \r\n*Environment*\r\n{code:java}\r\nNokia Lumia 640 LTE (RM-1073)\r\nversion 1607\r\nOS Build: 10.0.14393.576\r\n \r\nOperating System\r\nName = Microsoft Windows 10 Pro\r\nVersion = 10.0.14393\r\nArchitecture = 64bit\r\n# CPUs = 4\r\nMemory = 17034395648\r\n \r\nNode.js\r\nNode.js Version = 4.4.4\r\nnpm Version = 2.11.3\r\n \r\nTitanium SDK\r\nSDK Version =6.1.0.v20161222061413\r\n{code}\r\nClosing ticket. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-22T23:06:28.000+0000", "updated": "2016-12-22T23:06:28.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }