Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-40] Via Tender: Bug in modules/tiui/ui.js with console.log function on line 99

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:50:11.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsios, iphone
ReporterJeff Haynie
AssigneeReggie Seagraves
Created2011-04-15T02:22:51.000+0000
Updated2011-04-17T01:50:11.000+0000

Description

Assigned to http://support.appcelerator.net/discussions/support/10-bug-in-modulestiuiuijs-with-consolelog-function-on-line-99"> Tender issue #10. As reported in Tender:

There seems to be an bug in the modules/tiui/ui.js which is loaded by every Titanium app. The problem is on line 99:

//
// override console.log to also send into our API logger
//
var old_log = console.log;
console.log = function(msg)
{
    Titanium.API.debug(msg);
    return old_log(msg); // line 99
};

The reported error is a Type Error and occurs as soon as one uses the console.log function line "console.log('something')".

Comments

  1. Jeff Haynie 2011-04-15

    as of 0.5, we're no longer going to use/suppor tiui.js.

JSON Source