Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3224] iPad: WebViews don't receive events from Ti sometimes

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:01:13.000+0000
Affected Version/sn/a
Fix Version/sSprint-2011-08
ComponentsiOS
Labelsios, ipad, quickstart, reported-1.6.0
ReporterRick Blalock
AssigneeStephen Tramer
Created2011-04-15T03:39:52.000+0000
Updated2011-04-17T02:01:13.000+0000

Description

Attached is the project that can reproduce this on the iPad. If you change the label click event to just have the code below you'll see it works.

label.addEventListener('click', function() {
   Ti.App.fireEvent('thisdoesnotwork', { value: 'test' });
});

Attachments

FileDateSize
resources.zip2011-04-15T03:39:53.000+00001575706

Comments

  1. Stephen Tramer 2011-04-15

    The culprit is -[SBJSON fragmentFromString:] not understanding how to handle translation of proxy objects (or non-standard objects) into JSON information. According to Don, keys for objects that the JSON parser does not understand how to translate should get thrown away in the process.

  2. Jeff Haynie 2011-04-15

    (from [e8ce4ce6045f9054f5368caf2f98bdfc0d3e4d72]) [#3224 state:fixed-in-qa] - As per Don, iOS now ignores Proxy types in stringification (at least internally). - Fix for scrollable view crasher when rendering empty views array https://github.com/appcelerator/titanium_mobile/commit/e8ce4ce6045f9054f5368caf2f98bdfc0d3e4d72"> https://github.com/appcelerator/titanium_mobile/commit/e8ce4ce6045f...

  3. Natalie Huynh 2011-04-15

    Tested with Titanium SDK version: 1.7.0 (03/02/11 13:57 5d8c78a) on
    iPad 3.2.2

JSON Source