{ "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.

\n

This source:

\n
\nTi.API.info('typeof Ti.API.info is: ' + typeof Ti.API.info);\n
\n

On iOS gives the expected \"function\":

\n
\n[INFO] typeof Ti.API.info is: function\n
\n

On Android with git trunk we get unexpected \"object\":

\n
\n[INFO] [4,427] typeof Ti.API.info is: object\n
\n

Whereas under 1.4.1.1 we got \"function\" as we expected:

\n
\n[INFO] [2,364] typeof Ti.API.info is: function\n
{html}", "attachment": [], "flagged": false, "summary": "Android regression: typeof returns \"object\" instead of \"function\" for native functions", "creator": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127813", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This was recently resolved, marking as duplicate of #2288

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:29.000+0000", "updated": "2011-04-15T03:13:29.000+0000" }, { "id": "127814", "author": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Pass Titanium SDK version: 1.5.0 (12/01/10 09:30 ac7cfd8),\nAndroid 1.6/2.1 custom app.

{html}", "updateAuthor": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:30.000+0000", "updated": "2011-04-15T03:13:30.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }