[TIMOB-5383] Android: Window children property is never null unlike iOS
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-07-12T14:14:15.000+0000 |
Affected Version/s | Release 1.8.0 |
Fix Version/s | Release 2.1.0 |
Components | Android |
Labels | api, module_window, parity, qe-testadded |
Reporter | Rick Blalock |
Assignee | Neeraj Gupta |
Created | 2011-09-27T14:31:28.000+0000 |
Updated | 2014-07-04T07:13:21.000+0000 |
Description
Overview:
The children property of a Ti.UI.window is never null on Android where iOS it can be.
Explanation:
var win = Ti.UI.createWindow();
On iOS win.children
will be 'null'. On Android, it will not be null. An Android developer can check: `win.children[0]' to see if it's null. However this will throw an error in iOS since it's really null and not an array.
Tested the code on the iOS simulator and on a Samsung Galaxy S2 with 2.1GA. Here is the console output for both devices: "win.children: undefined". Expected behavior, ticket closed.
Environment used for verification - Tested with Titanium SDK: 2.2.0.v20120816212512 Tested with Titanium Studio: 2.1.1.201207271312 Device - Samsung GALAXY Note Android 2.3.6, iOS 5.1 simulator Machine OS - MAC 10.8