{ "id": "64888", "key": "TIMOB-3798", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11252", "name": "Sprint 2011-17", "archived": true, "released": true, "releaseDate": "2011-05-02" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-13T16:32:04.000+0000", "created": "2011-04-27T18:28:51.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios", "ios_proxy_registration" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-05-13T16:32:04.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Credit goes to Shannon Hicks of Pintley\n\n=======\nBlain,\n\nHere's a bit of my code:\n\n{code}\npintley.ui.screens.createLeaderboardTab = function(_data,_returnView) {\n\tvar leaderboardWindow = Titanium.UI.createWindow($$.Window);\n\t\n\tpointsData = _data;\n\ttableData = [];\n\ttableRows = [];\n\t\n\t// display objects\n\ttableView = Titanium.UI.createTableView({\n\t\tdata:tableRows,\n\t\tbackgroundColor:'white'\n\t});\n\t\n\tleaderboardWindow.add(tableView);\n\t\n\t// when this window is shown, get some data\n\tleaderboardWindow.addEventListener('open',function(){\n\t\talert('you opened this tab');\n\t});\n\n\tvar tab = Titanium.UI.createTab({\n\t\ticon:'images/tab_friends.png',\n\t\ttitle:'Leaderboard',\n\t\twindow:leaderboardWindow\n\t});\n\t\n\treturn tab;\n};\n\n{code}\nWhen this code is the second Tab in a TabGroup, upon switching to the tab, sometimes the \"open\" event fires, but most of the time it doesn't. Hope this helps.\n", "attachment": [], "flagged": false, "summary": "proxies fail to retain (in terms of scoping) properties set at creation", "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": "Simulator or device", "comment": { "comments": [ { "id": "132895", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed this by changing setValuesForKeysWithDictionary (Which IS a path traversed by proxy creation) to handle JS ownership for us.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-27T18:32:08.000+0000", "updated": "2011-04-27T18:32:08.000+0000" }, { "id": "133561", "author": { "name": "jacobrelkin", "key": "jacobrelkin", "displayName": "Jacob Relkin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed. (1_7_X, e6afca8..., iOS Simulator and Verizon iPhone 4 device.)", "updateAuthor": { "name": "jacobrelkin", "key": "jacobrelkin", "displayName": "Jacob Relkin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-13T16:32:04.000+0000", "updated": "2011-05-13T16:32:04.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }