{ "id": "62837", "key": "TIMOB-2205", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:24.000+0000", "created": "2011-04-15T03:13:28.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "function", "kroll", "object", "typeof" ], "versions": [], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:24.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}
Functions on native proxies and modules are being reported as\n'object' by the typeof operator on Android in current 1.5 code from\ngit; they should probably return 'function' to keep from confusing\ncode.
\nThis source:
\nTi.API.info('typeof Ti.API.info is: ' + typeof Ti.API.info);
\n
\nOn iOS gives the expected \"function\":
\n\n[INFO] typeof Ti.API.info is: function
\n
\nOn Android with git trunk we get unexpected \"object\":
\n\n[INFO] [4,427] typeof Ti.API.info is: object
\n
\nWhereas under 1.4.1.1 we got \"function\" as we expected:
\n\n[INFO] [2,364] typeof Ti.API.info is: function
\n
This was recently resolved, marking as duplicate of #2288
Pass Titanium SDK version: 1.5.0 (12/01/10 09:30 ac7cfd8),\nAndroid 1.6/2.1 custom app.