{ "id": "104803", "key": "TIMOB-11742", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-11-12T22:11:13.000+0000", "created": "2012-11-10T17:19:43.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "look1" ], "versions": [], "issuelinks": [ { "id": "22751", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "104287", "key": "TIMOB-11639", "fields": { "summary": "Blackberry: Window Management", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T20:24:13.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": "The window *close()* method does not work\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'#f00'\r\n});\r\n\r\nwin.open();\r\n\r\n\r\nvar open_lbl = Ti.UI.createLabel({\r\n\ttext:'Open yellow window',\r\n\tbackgroundColor:'#fff'\r\n});\r\n\r\nwin.add(open_lbl);\r\n\r\n\r\nvar yellow_win = Ti.UI.createWindow({\r\n\tbackgroundColor:'#ff0'\r\n});\r\n\r\n\r\n\r\nvar close_lbl = Ti.UI.createLabel({\r\n\ttop:100,\r\n\tbackgroundColor:'#0f0',\r\n\ttext:'Close yellow window'\r\n});\r\n\r\nyellow_win.add(close_lbl);\r\n\r\n\r\n\r\n\r\nopen_lbl.addEventListener('click', function(){\r\n\tyellow_win.open();\r\n});\r\n\r\n\r\nclose_lbl.addEventListener('click', function(){\r\n\ttry {\r\n\t\tyellow_win.close();\r\n\t}\r\n\tcatch(err) {\r\n\t\talert(err);\r\n\t}\r\n});\r\n{code}", "attachment": [ { "id": "33394", "filename": "capture-4.png", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-11-10T17:22:36.000+0000", "size": 61442, "mimeType": "image/png" } ], "flagged": false, "summary": "BB: Ti.UI.Window close() does not work", "creator": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Simulator BB OS 10.0.9.386 \r\nOsX Mountain Lion\r\n\r\nTi SDK\r\n\r\nversion=2.2.0\r\nmodule_apiversion=2\r\ntimestamp=10/19/12 11:58\r\ngithash=6bf86d6", "comment": { "comments": [ { "id": "227066", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This was implemented recently in \"master\" branch and should be available in the next preview drop.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-12T22:11:13.000+0000", "updated": "2012-11-12T22:11:13.000+0000" }, { "id": "412868", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as BlackBerry is no longer supported by us.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T20:24:13.000+0000", "updated": "2017-03-16T20:24:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }