{ "id": "149272", "key": "TIMOB-19111", "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": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2015-07-03T09:47:14.000+0000", "created": "2015-06-30T11:59:13.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-08-04T16:06:29.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": "While creating a polyfill for the missing Alloy XML support for CommandBar I discovered that:\r\n\r\n{code}\r\nvar backButton = Ti.UI.Windows.createAppBarButton({\r\n icon: Ti.UI.Windows.SystemIcon.BACK\r\n }),\r\n likeButton = Ti.UI.Windows.createAppBarToggleButton({\r\n icon: Ti.UI.Windows.SystemIcon.LIKEDISLIKE\r\n }),\r\n forwardButton = Titanium.UI.Windows.createAppBarButton({\r\n icon: Ti.UI.Windows.SystemIcon.FORWARD\r\n }),\r\n commandBar = Ti.UI.Windows.createCommandBar({\r\n items: [backButton, likeButton]\r\n }),\r\nwin = Ti.UI.createWindow();\r\n\r\ncommandBar.items.push(forwardButton);\r\n\r\nwin.add(commandBar);\r\nwin.open();\r\n{code}\r\n\r\ndoes not work (the commandBar displays empty) while:\r\n\r\n{code:javascript}\r\nvar items = commandBar.items;\r\nitems.push(forwardButton);\r\ncommandBar.items = items;\r\n{code}\r\n\r\ndoes work.", "attachment": [], "flagged": false, "summary": "Windows: Ti.UI.Windows.CommandBar.items.push(item) does not work", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 4.1.0 beta (4.1.0.v20150626223333)\r\nWindows Enterprise 8.1\r\nEmulator 8-1-1", "closedSprints": [ { "id": 443, "state": "closed", "name": "2015 Sprint 14 Windows", "startDate": "2015-07-06T04:01:52.896Z", "endDate": "2015-07-19T03:59:00.000Z", "completeDate": "2015-07-20T22:18:14.505Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "356884", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I would mark it as \"Won't Fix\" or \"Invalid\", because it is not supported on other platforms too. It is not updated because in this case {{push}} operation is basically done on *JavaScript Array object*, not onto Titanium proxy.\r\n\r\nFor example, following code does not add new Tab (Tested on iOS).\r\n\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n backgroundColor: 'blue',\r\n title: 'Blue'\r\n});\r\nwin1.add(Ti.UI.createLabel({text: 'I am a blue window.'}));\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n backgroundColor: 'red',\r\n title: 'Red'\r\n});\r\nwin2.add(Ti.UI.createLabel({text: 'I am a red window.'}));\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n window: win1,\r\n title: 'Blue'\r\n}),\r\ntab2 = Ti.UI.createTab({\r\n window: win2,\r\n title: 'Red'\r\n}),\r\ntabGroup = Ti.UI.createTabGroup({\r\n tabs: [tab1, tab2]\r\n});\r\n \r\nvar win3 = Ti.UI.createWindow({\r\n backgroundColor: 'green',\r\n title: 'Green'\r\n});\r\nwin3.add(Ti.UI.createLabel({text: 'I am a green window.'}));\r\nvar tab3 = Ti.UI.createTab({\r\n window: win3,\r\n title: 'Green'\r\n});\r\n\r\ntabGroup.addEventListener('open', function() {\r\n setTimeout(function() {\r\n tabGroup.tabs.push(tab3);\r\n //tabGroup.tabs = [tab1, tab2, tab3];\r\n alert('Pushed new tab. Does it work?');\r\n }, 3000);\r\n});\r\n\r\ntabGroup.open();\r\n{code}", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-03T09:47:14.000+0000", "updated": "2015-07-03T09:47:14.000+0000" }, { "id": "358765", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Closing as per above discussion, please reopen if needed.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-07-31T21:15:14.000+0000", "updated": "2015-07-31T21:15:14.000+0000" }, { "id": "358946", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Won't fix tickets don't get a fix version.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-04T15:56:13.000+0000", "updated": "2015-08-04T15:56:13.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }