Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13893] MobileWeb : JSON.stringify is giving error on event objects

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2013-05-17T17:14:25.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelsmobileweb
ReporterMeenakshi Pathak
AssigneeChris Barber
Created2013-05-17T11:53:54.000+0000
Updated2014-06-19T12:44:39.000+0000

Description

JSON.stringify is giving error on event objects in Mobile web.Like:
tableView.addEventListener('click', function(e)
    {
    	alert(JSON.stringify(e));
        
      }); 
Its giving the following error:
TypeError: JSON.stringify cannot serialize cyclic structures.

Comments

  1. Bryan Hughes 2013-05-17

    Duplicate of TIMOB-10424. Unfortunately the architecture of Mobile Web and the lack of proxies like the other platforms have prevent us from being able to fix this issue.

JSON Source