[TIMOB-1683] Android: 1-length arrays aren't converted from JSON correctly
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Trivial |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:56:52.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.5.0 |
| Components | Android |
| Labels | android, array, defect, json |
| Reporter | Marshall Culpepper |
| Assignee | Marshall Culpepper |
| Created | 2011-04-15T02:59:19.000+0000 |
| Updated | 2011-04-17T01:56:52.000+0000 |
Description
We're calling the wrong Array constructor when there's only 1 element in the Array
(from [8f9cd4e90d11d68fe27b56f9054dac169b6191d8]) use newArray instead of newObject for converting native arrays to JS arrays [#1683 state:fixed-in-qa] http://github.com/appcelerator/titanium_mobile/commit/8f9cd4e90d11d68fe27b56f9054dac169b6191d8"> http://github.com/appcelerator/titanium_mobile/commit/8f9cd4e90d11d...
confirmed on simulator and device, android and iPhone