{ "id": "88298", "key": "TIMOB-8129", "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-03-28T13:19:26.000+0000", "created": "2012-03-20T15:43:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T22:48:43.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": "h4. Problem Description\r\nWhen trying to use OptionDialog.hide() the system throws an error. \r\n\r\nh4. Actual Result\r\nThe OptionDialog is not hidden, and the console says:\r\n[WARN] Exception in event callback. { expressionBeginOffset = 8285; expressionCaretOffset = 8296; expressionEndOffset = 8298; line = 308; message = \"Result of expression 'dialog.hide' [undefined] is not a function.\"; name = TypeError; sourceId = 275495048; sourceURL = \"file://localhost/Users/ME/Library/Application%20Support/iPhone%20Simulator/5.0/Applications/7A1DC94A-2DD5-4726-AB88-E1567F3D9DC4/Some.app/app/ui/photos/gallery.js\"; }\r\n\r\nh4. Expected results\r\nThe optionDialog hidden, as the docs said.\r\n\r\nh4. Test Case.\r\n1. create a new mobile project\r\n2. Add a dialog to the default window\r\n3. Call the hide in the optionDialog\r\n\r\n{code}\r\nvar dialog = Titanium.UI.createOptionDialog({ title:'Hoe wil je delen?', options:['Facebook', 'Twitter', 'Hyves', 'E-mail', 'Annuleren'], cancel:4 });\r\n\r\nTi.Gesture.addEventListener('orientationchange',function(e){ Ti.API.info(dialog); //IT RETURNS INFO ABOUT THE DIALOG dialog.hide(); });\r\n\r\n dialog.show();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: OptionDialog.hide is not working", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Titanium SDK version: 1.8.2\r\nPlatform & version: iOS 5.0\r\nDevice Details: iOS simulator \r\nHost Operating System: OSX 10.7.3\r\nTitanium Studio version: 1.0.9", "comment": { "comments": [ { "id": "188928", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\r\nthis is reported in 1.8.2, and the customer needs the fix on that version. Neeraj, can you please help us here? \r\n\r\nBest,\r\n\r\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-03-27T15:11:37.000+0000", "updated": "2012-03-27T15:11:37.000+0000" }, { "id": "189045", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-7656.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-28T13:19:26.000+0000", "updated": "2012-03-28T13:19:26.000+0000" }, { "id": "410842", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T22:48:43.000+0000", "updated": "2017-03-09T22:48:43.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }