Empty array after adding elements using Titanium Appcelerator mobile 1.7.2
问题 I'm using Titanium Appcelerator mobile API 1.7.2. When creating an array, I'm getting some odd results. Is it my syntax? container.textBoxArray = new Array(); container.textBoxArray[0] = createPasswordTextField(options, '0%'); container.textBoxArray[1] = createPasswordTextField(options, '25%'); Ti.API.log(container.textBoxArray == null); Ti.API.log('len: ' + container.textBoxArray.length); The results of the output are 0 (for false) and 'len: 0' respectively. Anyone know why? Adam Edit: