[AC-2333] Android: Add children as array not working
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2012-12-10T08:34:43.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | add, array, children, component, triage |
Reporter | Jan Helleman |
Assignee | Mauro Parra-Miranda |
Created | 2012-10-19T23:01:56.000+0000 |
Updated | 2016-03-08T07:41:21.000+0000 |
Description
On iOS, I can "add" children as an array to a component. On Android this crashes the application:
var window = Ti.UI.createWindow({backgroundColor:'white'});
var btn1 = Ti.UI.createButton({title:'test1'});
var btn2 = Ti.UI.createButton({title:'test2', enabled: false, top: 100});
window.add([btn1, btn2]);
window.open();
Hi Jan, This isn't actually supported behavior. In theory it shouldn't work on iOS either. Admittedly we should perhaps fail a bit more gracefully. Cheers.
Too bad this won't be implemented since in theory it should bring greater performance.