Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7204] MobileWeb: Ti.API.log() does not properly print objects, arrays

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-01-16T11:12:45.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sSprint 2012-02, Release 2.0.0, Release 1.8.1
ComponentsMobileWeb
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2012-01-16T10:32:57.000+0000
Updated2017-03-03T23:17:42.000+0000

Description

Given the following code:
var x = {a:1};
Ti.API.log(x);
It outputs "[LOG] [object Object]" instead of "[LOG]" followed by the object's value.

Comments

  1. Chris Barber 2012-01-16

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/1185
  2. Lee Morris 2017-03-03

    Closing ticket.

JSON Source