{ "id": "98565", "key": "TIMOB-10298", "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": "15117", "description": "2013 Sprint 12 BB", "name": "2013 Sprint 12 BB", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15110", "description": "2013 Sprint 12", "name": "2013 Sprint 12", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-04T01:35:00.000+0000", "created": "2012-08-02T02:20:46.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:42:59.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "KitchenSink doesn't open any view the second time on device. \r\nIt is reproducible in the sdk with the following githash number: githash=33051bf .\r\n\r\nSteps to reproduce:\r\n\r\nStep1. Launch KitchenSink\r\nStep2. Open e.g. \"controls_win_title\"\r\nSTep3. Click on e.g. \"Activity Indicator\"\r\nStep4. Go back by clicking \"Back\" button in the left below corner\r\nStep5. CLick again and again on \"Activity Indicator\"\r\nActual Result: No any reaction\r\n\r\nStep6. You can click any other view, e.g. \"Slider\"\r\nStep7. Go back to the list (or even going back to Tab list and returning to the \"controls_win_title\" list which works fine doesn't matter how much time you go back and click it again)\r\nSTep8. Click again \"Activity Indicator\" or \"Slider\"\r\nActual Result: No any reaction\r\n\r\nExpected result: in STep5 and Step8 we should see the corresponding tabs opened.\r\nSolution to overcome: You can only open the \"Activity Indicator\" or \"Slider\" after closing and opening KitchenSink again. \r\n\r\n", "attachment": [], "flagged": false, "summary": "BlackBerry: KitchenSink doesn't open any view the second time on device", "creator": { "name": "hmezhlumyan", "key": "hmezhlumyan", "displayName": "Hranush Mezhlumyan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hmezhlumyan", "key": "hmezhlumyan", "displayName": "Hranush Mezhlumyan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "BlackBerry 10 Dev Alpha ", "comment": { "comments": [ { "id": "213097", "author": { "name": "hzakaryan", "key": "hzakaryan", "displayName": "Hayk Zakaryan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have done a small investigation and here are it's results.\r\nAdded some logging information in Resources\\ui\\ControlsWindow.js - modified tableView.addEventListener as\r\ntableview.addEventListener('click', function(e) {\r\n\t\tif (e.rowData.test) {\r\n\t\t\tTitanium.API.info('Requireing corresponding file: ' + e.rowData.test);\r\n\t\t\tvar ExampleWindow = require(e.rowData.test);\r\n\t\t\tTitanium.API.info('title = ' + e.rowData.title);\r\n\t\t\tTitanium.API.info('Self object type ' + Object.prototype.toString.call(self));\r\n\t\t\tTitanium.API.info('Self object has containingTab property: ' + (typeof(self.containingTab) !== 'undefined'));\r\n\t\t\tTitanium.API.info('self.containingTab type ' + Object.prototype.toString.call(self.containingTab));\r\n\t\t\tTitanium.API.info('Iterating over self');\r\n\t\t\tfor (var key in self) {\r\n\t\t\t Titanium.API.info(key + \" -> \" + self[key]);\r\n\t\t\t}\r\n\t\t\tTitanium.API.info('----------------');\r\n\t\t\tvar\twin = new ExampleWindow({\r\n\t\t\t\t\ttitle:e.rowData.title,\r\n\t\t\t\t\tcontainingTab:self.containingTab,\r\n\t\t\t\t\ttabGroup:self.tabGroup\r\n\t\t\t\t});\r\n\t\t\tTitanium.API.info('Windows created');\r\n\t\t\tself.containingTab.open(win,{animated:true});\r\n\t\t\tTitanium.API.info('windows opened');\r\n\t\t}\r\n\t});\r\n\r\nHere is the log output:\r\n\r\nNavigatorPrivate::handleWindowStateEvent - fullscreen\r\n[INFO]:Requireing corresponding file: ui/common/controls/button\r\n[INFO]:title = Button\r\n[INFO]:Self object type [object Object]\r\n[INFO]:Self object has containingTab property: true\r\n[INFO]:self.containingTab type [object Object]\r\n[INFO]:Iterating over self\r\n[INFO]:----------------\r\n[INFO]:Windows created\r\n[INFO]:windows opened\r\n[INFO]:Requireing corresponding file: ui/common/controls/button\r\n[INFO]:title = Button\r\n[INFO]:Self object type [object Object]\r\n[INFO]:Self object has containingTab property: true\r\n[INFO]:self.containingTab type [object Object]\r\n[INFO]:Iterating over self\r\n[INFO]:----------------\r\nTypeError: object is not a function\r\n[INFO]:Requireing corresponding file: ui/common/controls/button_state\r\n[INFO]:title = Button States\r\n[INFO]:Self object type [object Object]\r\n[INFO]:Self object has containingTab property: true\r\n[INFO]:self.containingTab type [object Object]\r\n[INFO]:Iterating over self\r\n[INFO]:----------------\r\n[INFO]:Windows created\r\n[INFO]:windows opened\r\n[INFO]:Requireing corresponding file: ui/common/controls/button_state\r\n[INFO]:title = Button States\r\n[INFO]:Self object type [object Object]\r\n[INFO]:Self object has containingTab property: true\r\n[INFO]:self.containingTab type [object Object]\r\n[INFO]:Iterating over self\r\n[INFO]:----------------\r\nTypeError: object is not a function\r\n[INFO]:Requireing corresponding file: ui/common/controls/button\r\n[INFO]:title = Button\r\n[INFO]:Self object type [object Object]\r\n[INFO]:Self object has containingTab property: true\r\n[INFO]:self.containingTab type [object Object]\r\n[INFO]:Iterating over self\r\n[INFO]:----------------\r\nTypeError: string is not a function\r\n[INFO]:Requireing corresponding file: ui/common/controls/button\r\n[INFO]:title = Button\r\n[INFO]:Self object type [object Object]\r\n[INFO]:Self object has containingTab property: true\r\n[INFO]:self.containingTab type [object Object]\r\n[INFO]:Iterating over self\r\n[INFO]:----------------\r\nTypeError: string is not a function\r\n[INFO]:Requireing corresponding file: ui/common/controls/button_state\r\n[INFO]:title = Button States\r\n[INFO]:Self object type [object Object]\r\n[INFO]:Self object has containingTab property: true\r\n[INFO]:self.containingTab type [object Object]\r\n[INFO]:Iterating over self\r\n[INFO]:----------------\r\nTypeError: string is not a function", "updateAuthor": { "name": "hzakaryan", "key": "hzakaryan", "displayName": "Hayk Zakaryan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-07T06:29:36.000+0000", "updated": "2012-08-07T06:29:36.000+0000" }, { "id": "219518", "author": { "name": "jlemieux", "key": "jlemieux", "displayName": "Jean-Philippe Lemieux", "active": true, "timeZone": "America/Montreal" }, "body": "This is a bug with the caching of the result of running js code in the require implementation. I commented out the code to use the cached value as a workaround for now.\r\n\r\nThe result is originally a function object, but when retrieved from the cache, it is no longer of type function. I didn't investigate further.", "updateAuthor": { "name": "jlemieux", "key": "jlemieux", "displayName": "Jean-Philippe Lemieux", "active": true, "timeZone": "America/Montreal" }, "created": "2012-09-18T12:18:13.000+0000", "updated": "2012-09-18T12:18:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }