{ "id": "135110", "key": "AC-858", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2015-09-15T04:05:50.000+0000", "created": "2014-08-21T14:46:45.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:09.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." } ], "description": "views/index.xml contains:\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\r\nstyles/index.xml contains:\r\n\"MenuItem\":{\r\n\tshowAsAction:Titanium.Android.SHOW_AS_ACTION_NEVER,\r\n}\r\n\"#hidekb\":{\r\n\tshowAsAction:Titanium.Android.SHOW_AS_ACTION_ALWAYS,\r\n\tvisible:\"false\",\r\n}\r\n\r\ncontrollers/index.js contains:\r\n\t$.hidekb.setVisible(false);\r\n\r\nResults: Android phone gives a Uncaught TypeError: Cannot call method 'setVisible' of undefined. Source: $.hidekb.setVisible(false);\r\n\r\n\r\nThis was tested on a Samsung Galaxy Note 2 LTE running Android 4.3. Project is based on the Default Alloy Project template.", "attachment": [], "flagged": false, "summary": "Unable to address MenuItem from index.js", "creator": { "name": "melvinchia", "key": "melvinchia", "displayName": "Melvin Chia", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "melvinchia", "key": "melvinchia", "displayName": "Melvin Chia", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "Host OS: Mac OS X\r\nOS Version: 10.9.4\r\nJRE Version: 1.6.0_65\r\nTitanium Studio Version: 3.3.0.201407100905\r\nLatest Titanium SDK: 3.3.0.GA\r\nTitanium SDK Version: 3.3.0.GA\r\nAndroid SDK Version: 4.4.2\r\nAndroid NDK Version: r9d (64-bit)\r\nNode.JS Version: v0.10.30\r\nNPM Version: 1.4.21\r\n\r\nMobile Phone: Samsung Galaxy Note 2 LTE\r\nMobile Phone OS: Android 4.3", "comment": { "comments": [ { "id": "362474", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hi ,\r\nI tested the issue you reported. It looks like the feature \"setVisible\" in MenuItem on android is working fine for me. This is not a bug in our platform. You need a reference to call the method .\r\n{code}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n{code}\r\nfunction doClick1(e) {\r\n alert(\"Menu item clicked: \" + e.source.title);\r\n e.source.setVisible(false);\r\n}\r\n$.win.open();\r\n\r\n{code}\r\n\r\n\r\nI tested this using the studio build: 4.1.1.201507141126 and TiSDK 4.1.0 GA\r\nI will mark this ticket as \"resolved\" since I can't reproduce it. However, feel free to reopen with additional information if you notice otherwise.\r\nThanks", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-08T05:45:09.000+0000", "updated": "2015-09-15T04:05:36.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }