{ "id": "85470", "key": "TIMOB-7403", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-14T14:00:36.000+0000", "created": "2012-01-25T14:20:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_toolbar", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "33692", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "123555", "key": "TIMOB-15946", "fields": { "summary": "iOS7: Toolbar - Using Instruments to search for Toolbar proxy crashes the app and TiUIiOSToolbarProxy does not get released", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-10T21:45:07.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": "h3.Issue\r\nToolbar Proxy does not get release using require.\r\n\r\nh6.Steps to reproduce\r\n1) Open instruments\r\n2) Filter \"proxy\" objects\r\n3) Click any Toolbar's button\r\n\r\nh6.Repro sequence\r\n{code:title=app.js}\r\nvar ToolbarSimple = require(\"ToolbarSimple\").ToolbarSimple;\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'white'\r\n});\r\nvar view;\r\nfunction close() {\r\n win.remove(view);\r\n view = null;\r\n}\r\n\r\nview = (function() {\r\n var v = Ti.UI.createView({\r\n backgroundColor : 'black'\r\n });\r\n var toolbar = new ToolbarSimple(\"Title\");\r\n v.add(toolbar);\r\n toolbar.addEventListener(\"done\", close);\r\n toolbar.addEventListener(\"cancel\", close);\r\n return v;\r\n})();\r\n\r\nwin.add(view);\r\n\r\nwin.open();\r\n{code}\r\n\r\n\r\n{code:title=ToolbarSimple.js}\r\nexports.ToolbarSimple = function(title) {\r\n var toolbar;\r\n var cancel = Titanium.UI.createButton({\r\n systemButton : Ti.UI.iPhone.SystemButton.CANCEL\r\n });\r\n cancel.addEventListener('click', function() {\r\n toolbar.fireEvent(\"cancel\");\r\n });\r\n var done = Titanium.UI.createButton({\r\n systemButton : Ti.UI.iPhone.SystemButton.DONE\r\n });\r\n done.addEventListener('click', function() {\r\n toolbar.fireEvent(\"done\");\r\n });\r\n\r\n var spacer = Titanium.UI.createButton({\r\n systemButton : Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\r\n });\r\n var lbl = Ti.UI.createLabel({\r\n text : title,\r\n color : 'white',\r\n font : {\r\n fontWeight : 'bold',\r\n fontSize : 18\r\n }\r\n });\r\n toolbar = Ti.UI.iOS.createToolbar({\r\n height : 43,\r\n barColor : \"purple\",\r\n items : [cancel, spacer, lbl, spacer, done]\r\n });\r\n return toolbar;\r\n};\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: Toolbar Proxy does not get release using require", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: Mobile 1.8.0.1, 1.9.0\r\nPlatform OS: iOS\r\nPlatform OS Version: 4.2 ", "comment": { "comments": [ { "id": "186677", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120315123246\r\nTitanium Studio, build: 2.0.0.201203142055\r\nxcode: 4.2\r\nDevice: iphone 4s (5.0.1)\r\n\r\nNote to QE: It takes a while for the TiUIToolbarProxy object to get released.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-15T13:46:17.000+0000", "updated": "2012-03-15T13:46:17.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }