[TIMOB-3224] iPad: WebViews don't receive events from Ti sometimes
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:01:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint-2011-08 |
Components | iOS |
Labels | ios, ipad, quickstart, reported-1.6.0 |
Reporter | Rick Blalock |
Assignee | Stephen Tramer |
Created | 2011-04-15T03:39:52.000+0000 |
Updated | 2011-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
File | Date | Size |
---|---|---|
resources.zip | 2011-04-15T03:39:53.000+0000 | 1575706 |
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.
(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...
Tested with Titanium SDK version: 1.7.0 (03/02/11 13:57 5d8c78a) on
iPad 3.2.2